aboutsummaryrefslogtreecommitdiffstats
path: root/bootscripts
diff options
context:
space:
mode:
Diffstat (limited to 'bootscripts')
-rw-r--r--bootscripts/contrib/lsb-v3/init.d/cleanfs6
-rw-r--r--bootscripts/lfs/init.d/cleanfs9
2 files changed, 1 insertions, 14 deletions
diff --git a/bootscripts/contrib/lsb-v3/init.d/cleanfs b/bootscripts/contrib/lsb-v3/init.d/cleanfs
index 61a1fb512..96582c28c 100644
--- a/bootscripts/contrib/lsb-v3/init.d/cleanfs
+++ b/bootscripts/contrib/lsb-v3/init.d/cleanfs
@@ -80,12 +80,6 @@ case "${1}" in
find /tmp -xdev -mindepth 1 ! -name lost+found \
-delete || failed=1
- message="${message} /var/lock"
- find /var/lock -type f -exec rm -f {} \; || failed=1
-
- message="${message} /var/run${NORMAL}"
- find /var/run ! -type d ! -name utmp -exec rm -f {} \; || failed=1
-
> /var/run/utmp
if grep -q '^utmp:' /etc/group ; then
chmod 664 /var/run/utmp
diff --git a/bootscripts/lfs/init.d/cleanfs b/bootscripts/lfs/init.d/cleanfs
index c5a42970c..e88ea5bac 100644
--- a/bootscripts/lfs/init.d/cleanfs
+++ b/bootscripts/lfs/init.d/cleanfs
@@ -78,15 +78,8 @@ case "${1}" in
find . -xdev -mindepth 1 ! -name lost+found \
-delete || failed=1
- boot_mesg -n " /var/lock" ${NORMAL}
- cd /var/lock &&
- find . -type f -exec rm -f {} \; || failed=1
-
- boot_mesg " /var/run" ${NORMAL}
- cd /var/run &&
- find . ! -type d ! -name utmp \
- -exec rm -f {} \; || failed=1
> /var/run/utmp
+
if grep -q '^utmp:' /etc/group ; then
chmod 664 /var/run/utmp
chgrp utmp /var/run/utmp