runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

ctrlaltdel (189B)


      1 #!/bin/sh
      2 
      3 PATH=/bin:/usr/bin
      4 MSG="System is going down in 14 seconds..."
      5 
      6 # echo 'disabled.' ; exit
      7 touch /etc/runit/stopit
      8 chmod 100 /etc/runit/stopit && echo "$MSG" | wall
      9 /bin/sleep 14