summaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-03-26 16:32:00 -0400
committerTom Gundersen <teg@jklm.no>2011-03-29 20:09:59 +0000
commit32272781b1d49496bcc5b6ce4394192e0f7306a3 (patch)
treef7c68154289562e350a7bf8b76c3d2e984e553df /rc.sysinit
parent6261540369407f6db66dd4c922c5833fc736c21b (diff)
rc.sysinit: condense calls to rm
Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit5
1 files changed, 1 insertions, 4 deletions
diff --git a/rc.sysinit b/rc.sysinit
index b19b3d6..7c0b970 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -334,11 +334,8 @@ if [[ -f $RANDOM_SEED ]]; then
fi
stat_busy "Removing Leftover Files"
-/bin/rm -f /etc/nologin &>/dev/null
-/bin/rm -f /etc/shutdownpid &>/dev/null
-/bin/rm -f /var/lock/* &>/dev/null
+/bin/rm -f /etc/{nologin,shutdownpid} /var/lock/* /forcefsck &>/dev/null
/bin/rm -rf /tmp/* /tmp/.* &>/dev/null
-/bin/rm -f /forcefsck &>/dev/null
[[ -d /var/run ]] && /usr/bin/find /var/run/ \! -type d -delete
: >| /var/run/utmp
/bin/chmod 0664 /var/run/utmp