aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2011-05-12 02:44:48 +0200
committerTom Gundersen <teg@jklm.no>2011-05-12 02:44:48 +0200
commit1640b0515f56dfa18c0237a686ade7f3b6893c81 (patch)
tree72808cf19da7357b735c4321d9d74c78face488d /rc.sysinit
parent2acd4aaf8b84316e30b63ba1f785e2e15ddee4a3 (diff)
downloadinitscripts-1640b0515f56dfa18c0237a686ade7f3b6893c81.tar.xz
fixup: symlink /var/run/daemons -> /run/daemons
This did not work if the folder existed already. Rather than overwriting the folder with a symlink, the symlink was placed in the folder. Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit3
1 files changed, 2 insertions, 1 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 1521299..d0003ab 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -316,7 +316,8 @@ stat_busy "Removing Leftover Files"
/bin/mountpoint -q /tmp || /bin/rm -rf /tmp/* /tmp/.* &>/dev/null
[[ ! -L /var/lock ]] && /bin/rm -rf /var/lock/*
[[ ! -L /var/run && -d /var/run ]] && /usr/bin/find /var/run/ \! -type d -delete
-[[ ! -L /var/run && ! -L /var/run/daemons ]] && /bin/ln -sf /run/daemons /var/run/daemons
+[[ ! -L /var/run && ! -L /var/run/daemons ]] && /bin/rm -rf /var/run/daemons \
+ && /bin/ln -s /run/daemons /var/run/daemons
: >| /var/run/utmp
/bin/chmod 0664 /var/run/utmp
/bin/chown root:utmp /var/run/utmp