=== modified file 'zsh-functions/zsv_check_rfkill' --- zsh-functions/zsv_check_rfkill 2014-02-20 19:17:38 +0000 +++ zsh-functions/zsv_check_rfkill 2014-02-14 19:20:50 +0000 @@ -5,11 +5,10 @@ rfkill=( /sys/class/net/$iface/*/rfkill*(N) ) for rf in $rfkill; do if [[ -e $rf/hard ]]; then - (($(<$rf/hard))) && return 1 + (($(<$rf/hard))) || return $? fi if [[ -e $rf/soft ]]; then - (($(<$rf/soft))) && return 1 + (($(<$rf/soft))) || return $? fi done return 0 # no rfkill present -# vim: ft=zsh noet ts=4 sts=4 sw=4