rfkill - svc - Simple service scripts and examples, to be used everywhere.
 (HTM) git clone git://r-36.net/svc
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       rfkill (219B)
       ---
            1 #!/bin/sh
            2 
            3 . /bin/svc.d/default/rfkill
            4 
            5 case $1 in
            6         -s)
            7                 for s in $BLOCK;
            8                 do
            9                         rfkill block $s
           10                 done
           11 
           12                 for s in $UNBLOCK
           13                 do
           14                         rfkill unblock $s
           15                 done
           16                 ;;
           17         -k)
           18                 ;;
           19         *)
           20                 echo "usage: $0 -s|-k"
           21                 exit 1
           22 esac
           23