runit

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

1 (335B)


      1 #!/bin/sh
      2 # system one time tasks
      3 
      4 PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
      5 trap : 2
      6 trap : 3
      7 
      8 sh /etc/rc autoboot
      9 if test $? -ne 0; then
     10   # /etc/rc crashed, start emergency shell.
     11   echo '/etc/rc failed. Press <enter> for emergency shell...'
     12   read input
     13   sh -p
     14   exec reboot
     15 fi
     16 touch /etc/runit/stopit
     17 chmod 0 /etc/runit/stopit