removed lfs-commands
[linux_from_scratch.git] / bootscripts / rc.d / init.d / cleanfs
blobda8992f3662ddb35641161875b037ae283079dd1
1 #!/bin/bash
2 # Begin $rc_base/init.d/cleanfs - Clean file system
4 # Written by Gerard Beekmans - gerard@linuxfromscratch.org
6 source /etc/sysconfig/rc
7 source $rc_functions
9 echo "Removing /var/run/* and /var/lock/*"
10 rm -rf /var/run/* /var/lock/*
11 evaluate_retval
13 echo "Creating new /var/run/utmp..."
14 touch /var/run/utmp && chmod 644 /var/run/utmp
15 evaluate_retval
17 echo "Removing possible /etc/nologin /fastboot and /forcefsck..."
18 rm -f /etc/nologin /fastboot /forcefsck
19 evaluate_retval
21 # End $rc_base/init.d/cleanfs