diff --git a/etc/rc.d/init.d/rc.sysinit b/etc/rc.d/init.d/rc.sysinit index 1c9b03a..29140b4 100755 --- a/etc/rc.d/init.d/rc.sysinit +++ b/etc/rc.d/init.d/rc.sysinit @@ -46,6 +46,7 @@ done [ $logfile ] || { logfile="/dev/.sysinit.start" + > $logfile } if [ ! -d $rc_base/rc$runlevel.d ]; then @@ -53,8 +54,6 @@ if [ ! -d $rc_base/rc$runlevel.d ]; then exit 1 fi -> $logfile - # set dns-resolving safe hostname for sysinit to successfully run hostname localhost @@ -97,7 +96,7 @@ which exited with a return value of $error_value done # rootfs should now be mounted rw, we can move logs there and umount tmpfs... -mv $logfile /var/log/initd.sysinit.start +[ $debug -eq 0 ] && mv $logfile /var/log/initd.sysinit.start # ...and remove garbage temp files rm -f /tmp/.runlevel.start.* 2>/dev/null