summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-12-31 16:36:26 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-12-31 16:36:26 +0100
commit6b51877976866dfb054c6fdcef0fe9844d6a4dad (patch)
tree01ac0bc2ecaf22333f44e3bc096941413658617f
parent099aecb016cc3a4aa8a00c801fb7cb79ecc6d7cd (diff)
fix some error messages, when fstab does not exist
-rw-r--r--package/base-files/Makefile2
-rw-r--r--package/base-files/src/etc/rc.shutdown2
-rwxr-xr-xpackage/base-files/src/init2
3 files changed, 3 insertions, 3 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 1b8bf812a..369d8f485 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -6,7 +6,7 @@ include $(TOPDIR)/mk/rootfs.mk
PKG_NAME:= base-files
PKG_VERSION:= 1.0
-PKG_RELEASE:= 41
+PKG_RELEASE:= 42
PKG_SECTION:= base
PKG_DESCR:= basic files and scripts
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