diff --git a/web-splash/web-splash.sh b/web-splash/web-splash.sh index 3de66ee..8f16a37 100755 --- a/web-splash/web-splash.sh +++ b/web-splash/web-splash.sh @@ -32,6 +32,11 @@ case "$ACTION" in [ $# -lt 2 ] && echo "[WEB_SPLASH] you have to specify an IP address" && exit 2 register_IP "$2" ;; + unregister ) + [ $# -gt 2 ] && echo "[WEB_SPLASH] too many parameters: only one IP address is allowed" && exit 1 + [ $# -lt 2 ] && echo "[WEB_SPLASH] you have to specify an IP address" && exit 2 + unregister_IP "$2" + ;; update ) update_IP_list ;; @@ -45,7 +50,7 @@ case "$ACTION" in fi ;; * ) - echo "Syntax: $0 {start|stop|restart}" + echo "Syntax: $0 {start|stop|restart|register|unregister|update|traffic}" echo ;; esac