aboutsummaryrefslogtreecommitdiff
path: root/init.d/bootmisc
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-07-16 17:07:15 +0000
committerRoy Marples <roy@marples.name>2007-07-16 17:07:15 +0000
commit26d11b33cf4dc9d15688c734632ea850c6d2e3d3 (patch)
tree636b11c710b87c0055fc0a0dea2722bf570fbd9a /init.d/bootmisc
parent42a5cb043b2280e8b667577c79fe6ed7a741b467 (diff)
Use printf so we don't put blank lines at the top of new files and fix mountinfo for nfs roots
Diffstat (limited to 'init.d/bootmisc')
-rwxr-xr-xinit.d/bootmisc8
1 files changed, 4 insertions, 4 deletions
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() {