3 # clean up local filesystems
6 #locate and source functions script
7 source `PATH=$INIT_D/:/sbin/init.d:/etc/init.d:/etc/rc.d type -p functions`
11 need
$mounted_filesystems || exit_if_any_error
13 echo 'Clearing /var/lock/ and /var/run/ ...'
14 rm -f /var
/lock
/* && rm -f /var
/run
/*
18 echo 'Creating new /var/run/utmp...'
19 touch /var
/run
/utmp
&& chmod 644 /var
/run
/utmp
22 echo 'Removing nologin, fastboot, forcefsck...'
23 rm -f /etc
/nologin
/nologin
/fastboot
/forcefsck