1
0
Переглянути джерело

fix some error messages, when fstab does not exist

Waldemar Brodkorb 14 роки тому
батько
коміт
6b51877976

+ 1 - 1
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
 

+ 1 - 1
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

+ 1 - 1
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