Browse Source

Merge pull request #4291 from dibdot/package-travelmate

travelmate: update 0.7.1
lilik-openwrt-22.03
Hannu Nyman 8 years ago
committed by GitHub
parent
commit
a4c347834a
3 changed files with 11 additions and 7 deletions
  1. +1
    -1
      net/travelmate/Makefile
  2. +0
    -5
      net/travelmate/files/travelmate.init
  3. +10
    -1
      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.7.0
PKG_VERSION:=0.7.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>


+ 0
- 5
net/travelmate/files/travelmate.init View File

@ -11,7 +11,6 @@ trm_script="/usr/bin/travelmate.sh"
boot() boot()
{ {
trm_boot=1
ubus -t 30 wait_for network.interface 2>/dev/null ubus -t 30 wait_for network.interface 2>/dev/null
rc_procd start_service rc_procd start_service
} }
@ -20,10 +19,6 @@ start_service()
{ {
if [ $("${trm_init}" enabled; printf ${?}) -eq 0 ] if [ $("${trm_init}" enabled; printf ${?}) -eq 0 ]
then then
if [ -n "${trm_boot}" ]
then
return 0
fi
procd_open_instance "travelmate" procd_open_instance "travelmate"
procd_set_param command "${trm_script}" "${@}" procd_set_param command "${trm_script}" "${@}"
procd_set_param stdout 1 procd_set_param stdout 1


+ 10
- 1
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.7.0"
trm_ver="0.7.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
@ -267,6 +267,15 @@ f_main()
sleep 5 sleep 5
done done
done done
else
if [ ! -s "${trm_rtfile}" ]
then
config="$(ubus -S call network.wireless status | jsonfilter -l1 -e '@.*.interfaces[@.config.mode="sta"].section')"
sta_radio="$(uci -q get wireless."${config}".device)"
sta_ssid="$(uci -q get wireless."${config}".ssid)"
sta_iface="$(uci -q get wireless."${config}".network)"
f_jsnupdate "${sta_iface}" "${sta_radio}" "${sta_ssid}"
fi
fi fi
} }


Loading…
Cancel
Save