=== modified file 'sbin/zsv_ifupdown' --- sbin/zsv_ifupdown 2014-02-14 03:43:11 +0000 +++ sbin/zsv_ifupdown 2014-02-14 01:40:28 +0000 @@ -1,11 +1,8 @@ #!/bin/zsh # Handle events from netplug or wpa_cli and mark interfaces as up or down accordingly -logger -t $0:t "${(qqq)@}" - usage() { - logger -t $0:t "wrong arguments:" "${(qqq)@}" - echo "$0:t: wrong arguments" >&2 + echo "$0:h: wrong arguments" >&2 echo "Call with " >&2 exit 1 } @@ -14,7 +11,7 @@ mkdir -p /run/interfaces -case "$2" in +case "${ACTION}" in (in) echo up >/run/interfaces/$1 ;; (CONNECTED) echo up >/run/interfaces/$1 ;; (out) echo down >/run/interfaces/$1 ;;