From 26d11b33cf4dc9d15688c734632ea850c6d2e3d3 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 16 Jul 2007 17:07:15 +0000 Subject: Use printf so we don't put blank lines at the top of new files and fix mountinfo for nfs roots --- init.d/bootmisc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'init.d') diff --git a/init.d/bootmisc b/init.d/bootmisc index 4fadb624..6be844e1 100755 --- a/init.d/bootmisc +++ b/init.d/bootmisc @@ -34,8 +34,8 @@ start() { if [ "${RC_UNAME}" = "Linux" ] ; then # Setup login records - echo > /var/run/utmp - [ -e /var/log/wtmp ] || echo > /var/log/wtmp + printf "" >/var/run/utmp + [ -e /var/log/wtmp ] || printf "" >/var/log/wtmp chgrp utmp /var/run/utmp /var/log/wtmp chmod 0664 /var/run/utmp /var/log/wtmp fi @@ -73,7 +73,7 @@ start() { fi # Create the .keep to stop portage from removing /var/lock - echo > /var/lock/.keep + printf "" >/var/lock/.keep eend 0 # Clean up /tmp directory @@ -126,7 +126,7 @@ start() { fi # Check for /etc/resolv.conf, and create if missing - [ -e /etc/resolv.conf ] || echo >/etc/resolv.conf + [ -e /etc/resolv.conf ] || printf "" >/etc/resolv.conf } stop() { -- cgit v1.2.3