=== removed file 'sbin/zsv_ifupdown' --- sbin/zsv_ifupdown 2014-02-14 01:40:28 +0000 +++ sbin/zsv_ifupdown 1970-01-01 00:00:00 +0000 @@ -1,25 +0,0 @@ -#!/bin/zsh -# Handle events from netplug or wpa_cli and mark interfaces as up or down accordingly - -usage() { - echo "$0:h: wrong arguments" >&2 - echo "Call with " >&2 - exit 1 -} - -(( $# == 2 )) || usage - -mkdir -p /run/interfaces - -case "${ACTION}" in - (in) echo up >/run/interfaces/$1 ;; - (CONNECTED) echo up >/run/interfaces/$1 ;; - (out) echo down >/run/interfaces/$1 ;; - (DISCONNECTED) echo down >/run/interfaces/$1 ;; - (probe) - # NOOP for netplugd - exit 0 ;; - (*) usage ;; -esac - -zsvgen === removed file 'zsh-functions/zsv_ifup' --- zsh-functions/zsv_ifup 2014-02-14 01:40:28 +0000 +++ zsh-functions/zsv_ifup 1970-01-01 00:00:00 +0000 @@ -1,6 +0,0 @@ -local ifc -ifc=/run/interfaces/${1:-$iface} -[[ -f $ifc ]] || return 1 -[[ "$(<$ifc)" == up ]] || return 1 -return 0 -# vim: ft=zsh noet ts=4 sts=4 sw=4