travelmate: adapt openwrt rc.common changes 13847/head
authorDirk Brenken <dev@brenken.org>
Tue, 3 Nov 2020 18:37:32 +0000 (19:37 +0100)
committerDirk Brenken <dev@brenken.org>
Tue, 3 Nov 2020 18:37:32 +0000 (19:37 +0100)
* since openwrt master has merged the depending P/R, the old
extra_help/extra_commands syntax is no longer working, see #13798 for
reference

Signed-off-by: Dirk Brenken <dev@brenken.org>
net/travelmate/Makefile
net/travelmate/files/travelmate.init

index cb207c1781d24152ada8d25afaa2edf1f9f89f07..bf6dd1563a97920839eb66c9dc4b8c2406c0b819 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=travelmate
 PKG_VERSION:=2.0.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_LICENSE:=GPL-3.0-or-later
 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
 
index 2bfd5c1630346c0e483a0e557314a192cb28afc0..a2256b7178fb41e94485fa2ba211f52a2eafff47 100755 (executable)
@@ -6,9 +6,8 @@
 START=25
 USE_PROCD=1
 
-EXTRA_COMMANDS="scan setup"
-EXTRA_HELP="   scan    <radio> Scan for available nearby uplinks
-       setup   [<iface>] [<zone>] [<metric>] Setup the travelmate uplink interface, by default 'trm_wwan' with firewall zone 'wan' and metric '100'"
+extra_command "scan" "<radio> Scan for available nearby uplinks"
+extra_command "setup" "[<iface>] [<zone>] [<metric>] Setup the travelmate uplink interface, by default 'trm_wwan' with firewall zone 'wan' and metric '100'"
 
 trm_init="/etc/init.d/travelmate"
 trm_script="/usr/bin/travelmate.sh"