From 6b51877976866dfb054c6fdcef0fe9844d6a4dad Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 31 Dec 2010 16:36:26 +0100 Subject: fix some error messages, when fstab does not exist --- package/base-files/src/etc/rc.shutdown | 2 +- package/base-files/src/init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'package/base-files/src') diff --git a/package/base-files/src/etc/rc.shutdown b/package/base-files/src/etc/rc.shutdown index 85d9e0058..381669a57 100644 --- a/package/base-files/src/etc/rc.shutdown +++ b/package/base-files/src/etc/rc.shutdown @@ -1,5 +1,5 @@ #!/bin/sh -for i in $(grep -v ^# /etc/fstab |awk '{ print $2 }');do +for i in $(grep -v ^# /etc/fstab 2>/dev/null|awk '{ print $2 }');do printf Unmounting $i umount $i done diff --git a/package/base-files/src/init b/package/base-files/src/init index fc4ec8cb9..c1016cc34 100755 --- a/package/base-files/src/init +++ b/package/base-files/src/init @@ -18,5 +18,5 @@ echo "/sbin/mdev" >/proc/sys/kernel/hotplug mdev -s cat /etc/.rnd >/dev/urandom 2>&1 [ -x /sbin/cfgfs ] && { cfgfs setup; mount -o remount,ro /;} || mount -o remount,rw / -[ -f /etc/fstab ] && fsck -p >/dev/null ; mount -a +[ -f /etc/fstab ] && { fsck -p >/dev/null ; mount -a; } exec /sbin/init -- cgit v1.2.3