Browse Source

Merge pull request #4557 from dibdot/travelmate

travelmate: update 0.8.2
lilik-openwrt-22.03
Hannu Nyman 7 years ago
committed by GitHub
parent
commit
36112dea5b
3 changed files with 14 additions and 14 deletions
  1. +1
    -1
      net/travelmate/Makefile
  2. +2
    -2
      net/travelmate/files/travelmate.init
  3. +11
    -11
      net/travelmate/files/travelmate.sh

+ 1
- 1
net/travelmate/Makefile View File

@ -6,7 +6,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=travelmate
PKG_VERSION:=0.8.1
PKG_VERSION:=0.8.2
PKG_RELEASE:=1
PKG_LICENSE:=GPL-3.0+
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>


+ 2
- 2
net/travelmate/files/travelmate.init View File

@ -1,6 +1,6 @@
#!/bin/sh /etc/rc.common
START=35
START=90
USE_PROCD=1
EXTRA_COMMANDS="status"
@ -11,7 +11,7 @@ trm_script="/usr/bin/travelmate.sh"
boot()
{
ubus -t 30 wait_for network.interface network.wireless hostapd.wlan0 2>/dev/null
ubus -t 30 wait_for network.interface network.wireless 2>/dev/null
rc_procd start_service
}


+ 11
- 11
net/travelmate/files/travelmate.sh View File

@ -10,7 +10,7 @@
#
LC_ALL=C
PATH="/usr/sbin:/usr/bin:/sbin:/bin"
trm_ver="0.8.1"
trm_ver="0.8.2"
trm_sysver="$(ubus -S call system board | jsonfilter -e '@.release.description')"
trm_enabled=0
trm_debug=0
@ -22,16 +22,6 @@ trm_iwinfo="$(command -v iwinfo)"
trm_radio=""
trm_rtfile="/tmp/trm_runtime.json"
# source required system libraries
#
if [ -r "/lib/functions.sh" ] && [ -r "/usr/share/libubox/jshn.sh" ]
then
. "/lib/functions.sh"
. "/usr/share/libubox/jshn.sh"
else
f_log "error" "system libraries not found"
fi
# f_envload: load travelmate environment
#
f_envload()
@ -262,6 +252,16 @@ f_main()
fi
}
# source required system libraries
#
if [ -r "/lib/functions.sh" ] && [ -r "/usr/share/libubox/jshn.sh" ]
then
. "/lib/functions.sh"
. "/usr/share/libubox/jshn.sh"
else
f_log "error" "system libraries not found"
fi
# handle different travelmate actions
#
f_envload


Loading…
Cancel
Save