slb

Sleep on Low Battery
Log | Files | Refs | README | LICENSE

mksrv (247B)


      1 #!/bin/sh
      2 
      3 uid=`id -u`
      4 if test $uid -ne 0
      5 then
      6     echo "This script should be run as root"
      7     exit 1
      8 fi
      9 umask 022
     10 mkdir /etc/sv/slb
     11 cat <<EOF >/etc/sv/slb/run
     12 #!/bin/sh
     13 exec /bin/slb
     14 EOF
     15 chmod 755 /etc/sv/slb/run
     16 ln -s /etc/sv/slb /var/service/