Browse Source

mwan3: remove bad local shell variable declarations

Local variable declarations outside of functions are illegal since the Busybox
update to v1.25.0, therfore remove them from the appropriate places.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
lilik-openwrt-22.03
Jo-Philipp Wich 8 years ago
parent
commit
a67e66c280
3 changed files with 1 additions and 5 deletions
  1. +1
    -1
      net/mwan3/Makefile
  2. +0
    -2
      net/mwan3/files/etc/hotplug.d/iface/15-mwan3
  3. +0
    -2
      net/mwan3/files/lib/mwan3/mwan3.sh

+ 1
- 1
net/mwan3/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=mwan3 PKG_NAME:=mwan3
PKG_VERSION:=2.0 PKG_VERSION:=2.0
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_MAINTAINER:=Jeroen Louwes <jeroen.louwes@gmail.com> PKG_MAINTAINER:=Jeroen Louwes <jeroen.louwes@gmail.com>
PKG_LICENSE:=GPLv2 PKG_LICENSE:=GPLv2


+ 0
- 2
net/mwan3/files/etc/hotplug.d/iface/15-mwan3 View File

@ -22,8 +22,6 @@ fi
[ -x /usr/sbin/ip6tables ] || exit 7 [ -x /usr/sbin/ip6tables ] || exit 7
[ -x /usr/bin/logger ] || exit 8 [ -x /usr/bin/logger ] || exit 8
local family gateway
config_get family $INTERFACE family ipv4 config_get family $INTERFACE family ipv4
if [ "$family" == "ipv4" ]; then if [ "$family" == "ipv4" ]; then


+ 0
- 2
net/mwan3/files/lib/mwan3/mwan3.sh View File

@ -1,7 +1,5 @@
#!/bin/sh #!/bin/sh
local IP4 IP6 IPS IPT4 IPT6 LOG
IP4="/usr/bin/ip -4" IP4="/usr/bin/ip -4"
IP6="/usr/bin/ip -6" IP6="/usr/bin/ip -6"
IPS="/usr/sbin/ipset" IPS="/usr/sbin/ipset"


Loading…
Cancel
Save