mwan3: update to version 1.5-8
authorAdze1502 <jeroen.louwes@gmail.com>
Tue, 7 Oct 2014 09:23:02 +0000 (11:23 +0200)
committerEtienne CHAMPETIER <champetier.etienne@gmail.com>
Tue, 7 Oct 2014 12:04:53 +0000 (14:04 +0200)
Fix bug introduced in version 1.5-7; args were not parsed to script.

Signed-off-by: Jeroen Louwes <jeroen.louwes@gmail.com>
net/mwan3/Makefile
net/mwan3/files/usr/sbin/mwan3

index 6ddeef4ea87134ffa50a5004bd2c2bdb91fdbf02..7839ce207220d92c30fdc2de5c0217bdc89fc4cf 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mwan3
 PKG_VERSION:=1.5
-PKG_RELEASE:=7
+PKG_RELEASE:=8
 PKG_MAINTAINER:=Jeroen Louwes <jeroen.louwes@gmail.com>
 PKG_LICENSE:=GPLv2
 
index 5734b8a25ad581239f956a03d5629344ce76127a..5d9f719f10619b4f651967bc58ff06b181dc7177 100755 (executable)
@@ -202,5 +202,13 @@ restart() {
        start
 }
 
-action=${1:-help}
-$action
+case "$1" in
+       ifup|ifdown|interfaces|policies|rules|status|start|stop|restart)
+               $*
+       ;;
+       *)
+               help
+       ;;
+esac
+
+exit 0