shinit

basic init daemon in POSIX sh
git clone git://git.ckyln.com/~cem/shinit.git
Log | Files | Refs | README | LICENSE

poweroff (124B)


      1 #!/bin/sh
      2 # An example way to poweroff/reboot.
      3 
      4 case "${0##*/}" in poweroff) kill -s USR1 1 ;; reboot) kill -s INT 1 ; esac