summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-12-16 00:06:14 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-12-16 00:06:14 +0100
commite675191cfaa9c388e8360b56cff12f6e7e702e18 (patch)
tree2a2c3ec0db3a74815c10de30911593d681c2378d /package/base-files
parent156edaba0e7190ec7fe8e7f68a2b9f5f41fb2467 (diff)
enable automatic filesystem checks for devices/partitions in /etc/fstab
Diffstat (limited to 'package/base-files')
-rw-r--r--package/base-files/Makefile2
-rw-r--r--package/base-files/src/etc/rc.shutdown4
-rwxr-xr-xpackage/base-files/src/init2
3 files changed, 6 insertions, 2 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index f0695966e..2cd221fb1 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:= 38
+PKG_RELEASE:= 39
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
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