1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh # system one time tasks trap : 2 trap : 3 /bin/sh /etc/rc autoboot && exit 0 # /etc/rc crashed, start emergency shell. echo '/etc/rc failed. Press <enter> for emergency shell...' read input /bin/sh -l /sbin/reboot