mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
mwan3: fix mwan3 'use'
Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=mwan3
|
PKG_NAME:=mwan3
|
||||||
PKG_VERSION:=2.10.0
|
PKG_VERSION:=2.10.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
PKG_MAINTAINER:=Florian Eckert <fe@dev.tdt.de>
|
PKG_MAINTAINER:=Florian Eckert <fe@dev.tdt.de>
|
||||||
PKG_LICENSE:=GPL-2.0
|
PKG_LICENSE:=GPL-2.0
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ restart() {
|
|||||||
/etc/init.d/mwan3 start
|
/etc/init.d/mwan3 start
|
||||||
}
|
}
|
||||||
|
|
||||||
wrap() {
|
use() {
|
||||||
# Run a command with the device, src_ip and fwmark set to avoid processing by mwan3
|
# Run a command with the device, src_ip and fwmark set to avoid processing by mwan3
|
||||||
# firewall rules
|
# firewall rules
|
||||||
|
|
||||||
@@ -132,7 +132,7 @@ wrap() {
|
|||||||
config_load mwan3
|
config_load mwan3
|
||||||
|
|
||||||
interface=$1 ; shift
|
interface=$1 ; shift
|
||||||
[ -z "$*" ] && echo "no command specified for mwan3 wrap" && return
|
[ -z "$*" ] && echo "no command specified for mwan3 use" && return
|
||||||
network_get_device device $interface
|
network_get_device device $interface
|
||||||
[ -z "$device" ] && echo "could not find device for $interface" && return
|
[ -z "$device" ] && echo "could not find device for $interface" && return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user