Browse Source

travelmate: update 0.8.1

* wait for hostapd comes up during boot
* remove needless ubus call during script startup
* remove needless iwinfo check (covered by package dependency)

Signed-off-by: Dirk Brenken <dev@brenken.org>
lilik-openwrt-22.03
Dirk Brenken 8 years ago
parent
commit
97a9f3b6b9
3 changed files with 3 additions and 14 deletions
  1. +1
    -1
      net/travelmate/Makefile
  2. +1
    -1
      net/travelmate/files/travelmate.init
  3. +1
    -12
      net/travelmate/files/travelmate.sh

+ 1
- 1
net/travelmate/Makefile View File

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


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

@ -11,7 +11,7 @@ trm_script="/usr/bin/travelmate.sh"
boot() boot()
{ {
ubus -t 30 wait_for network.interface 2>/dev/null
ubus -t 30 wait_for network.interface network.wireless hostapd.wlan0 2>/dev/null
rc_procd start_service rc_procd start_service
} }


+ 1
- 12
net/travelmate/files/travelmate.sh View File

@ -10,7 +10,7 @@
# #
LC_ALL=C LC_ALL=C
PATH="/usr/sbin:/usr/bin:/sbin:/bin" PATH="/usr/sbin:/usr/bin:/sbin:/bin"
trm_ver="0.8.0"
trm_ver="0.8.1"
trm_sysver="$(ubus -S call system board | jsonfilter -e '@.release.description')" trm_sysver="$(ubus -S call system board | jsonfilter -e '@.release.description')"
trm_enabled=0 trm_enabled=0
trm_debug=0 trm_debug=0
@ -32,10 +32,6 @@ else
f_log "error" "system libraries not found" f_log "error" "system libraries not found"
fi fi
# initial wireless recovery
#
ubus call network.wireless up
# f_envload: load travelmate environment # f_envload: load travelmate environment
# #
f_envload() f_envload()
@ -61,13 +57,6 @@ f_envload()
f_log "info " "travelmate is currently disabled, please set 'trm_enabled' to '1' to use this service" f_log "info " "travelmate is currently disabled, please set 'trm_enabled' to '1' to use this service"
exit 0 exit 0
fi fi
# check for wireless tool
#
if [ -z "${trm_iwinfo}" ]
then
f_log "error" "no wireless tool found, please install package 'iwinfo'"
fi
} }
# f_prepare: gather radio information & bring down all STA interfaces # f_prepare: gather radio information & bring down all STA interfaces


Loading…
Cancel
Save