diff options
Diffstat (limited to 'package/base-files/src')
-rw-r--r-- | package/base-files/src/etc/rc.shutdown | 4 | ||||
-rwxr-xr-x | package/base-files/src/init | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/package/base-files/src/etc/rc.shutdown b/package/base-files/src/etc/rc.shutdown new file mode 100644 index 000000000..a5b930ad9 --- /dev/null +++ b/package/base-files/src/etc/rc.shutdown @@ -0,0 +1,4 @@ +#!/bin/sh +for i in $(grep -v ^# /etc/fstab |awk '{ print $2 }');do + umount $i +done diff --git a/package/base-files/src/init b/package/base-files/src/init index e290cee95..af780c324 100755 --- a/package/base-files/src/init +++ b/package/base-files/src/init @@ -19,5 +19,5 @@ mdev -s mount -o remount,rw / cat /etc/.rnd >/dev/urandom 2>&1 [ -x /sbin/cfgfs ] && { cfgfs setup; mount -o remount,ro /;} -[ -f /etc/fstab ] && mount -a +[ -f /etc/fstab ] && fsck -p >/dev/null ; mount -a exec /sbin/init |