mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
mwan3: update to version 1.6-2
Fix malformed uci commands. (issue #1502) Signed-off-by: Jeroen Louwes <jeroen.louwes@gmail.com>
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=mwan3
|
PKG_NAME:=mwan3
|
||||||
PKG_VERSION:=1.6
|
PKG_VERSION:=1.6
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
PKG_MAINTAINER:=Jeroen Louwes <jeroen.louwes@gmail.com>
|
PKG_MAINTAINER:=Jeroen Louwes <jeroen.louwes@gmail.com>
|
||||||
PKG_LICENSE:=GPLv2
|
PKG_LICENSE:=GPLv2
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ ifup()
|
|||||||
|
|
||||||
config_get enabled "$1" enabled 0
|
config_get enabled "$1" enabled 0
|
||||||
|
|
||||||
device=$(uci get -p /var/state network.$1.ifname) &> /dev/null
|
device=$(uci -p /var/state get network.$1.ifname) &> /dev/null
|
||||||
|
|
||||||
if [ -n "$device" ] ; then
|
if [ -n "$device" ] ; then
|
||||||
[ "$enabled" -eq 1 ] && ACTION=ifup INTERFACE=$1 DEVICE=$device /sbin/hotplug-call iface
|
[ "$enabled" -eq 1 ] && ACTION=ifup INTERFACE=$1 DEVICE=$device /sbin/hotplug-call iface
|
||||||
@@ -76,7 +76,7 @@ interfaces()
|
|||||||
check_iface_status()
|
check_iface_status()
|
||||||
{
|
{
|
||||||
let iface_id++
|
let iface_id++
|
||||||
device=$(uci get -p /var/state network.$1.ifname) &> /dev/null
|
device=$(uci -p /var/state get network.$1.ifname) &> /dev/null
|
||||||
|
|
||||||
if [ -z "$device" ]; then
|
if [ -z "$device" ]; then
|
||||||
echo " interface $1 is unknown"
|
echo " interface $1 is unknown"
|
||||||
@@ -92,7 +92,7 @@ interfaces()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$($IP rule | awk '$5 == "'$device'"')" -a -n "$($IPT -S mwan3_iface_$1 2> /dev/null)" -a -n "$($IP route list table $iface_id default dev $device 2> /dev/null)" ]; then
|
if [ -n "$($IP rule | awk '$5 == "'$device'"')" -a -n "$($IPT -S mwan3_iface_$1 2> /dev/null)" -a -n "$($IP route list table $iface_id default dev $device 2> /dev/null)" ]; then
|
||||||
if [ -n "$(uci get -p /var/state mwan3.$1.track_ip 2> /dev/null)" ]; then
|
if [ -n "$(uci -p /var/state get mwan3.$1.track_ip 2> /dev/null)" ]; then
|
||||||
echo " interface $1 is online (tracking $tracking)"
|
echo " interface $1 is online (tracking $tracking)"
|
||||||
else
|
else
|
||||||
echo " interface $1 is online"
|
echo " interface $1 is online"
|
||||||
@@ -101,7 +101,7 @@ interfaces()
|
|||||||
echo " interface $1 error"
|
echo " interface $1 error"
|
||||||
else
|
else
|
||||||
if [ "$enabled" -eq 1 ]; then
|
if [ "$enabled" -eq 1 ]; then
|
||||||
if [ -n "$(uci get -p /var/state mwan3.$1.track_ip 2> /dev/null)" ]; then
|
if [ -n "$(uci -p /var/state get mwan3.$1.track_ip 2> /dev/null)" ]; then
|
||||||
echo " interface $1 is offline (tracking $tracking)"
|
echo " interface $1 is offline (tracking $tracking)"
|
||||||
else
|
else
|
||||||
echo " interface $1 is offline"
|
echo " interface $1 is offline"
|
||||||
|
|||||||
Reference in New Issue
Block a user