From 1640b0515f56dfa18c0237a686ade7f3b6893c81 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Thu, 12 May 2011 02:44:48 +0200 Subject: 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 --- rc.sysinit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rc.sysinit') 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 -- cgit v1.2.3