diff options
author | Roy Marples <roy@marples.name> | 2008-04-17 00:09:34 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-04-17 00:09:34 +0000 |
commit | c89b3763fb9b940e43c61b2dba1653a0d5229b91 (patch) | |
tree | 5746ad8c4a2421c7ab067c602fc1335b0797e8bc /init.d/root.in | |
parent | 425abe40c5b511e684efe508972b9036462a2358 (diff) |
Respect shutdown -F on Linux to force fsck, #59
Diffstat (limited to 'init.d/root.in')
-rw-r--r-- | init.d/root.in | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/init.d/root.in b/init.d/root.in index aba6415f..ec0466c3 100644 --- a/init.d/root.in +++ b/init.d/root.in @@ -13,7 +13,7 @@ depend() start() { if echo 2>/dev/null >/.test.$$; then - rm -f /.test.$$ /fastboot + rm -f /.test.$$ /fastboot /forcefsck return 0 fi @@ -22,6 +22,7 @@ start() Linux) mount -n -o remount,rw /;; *) mount -u -o rw /;; esac - eend $? "Root filesystem could not be mounted read/write" - rm -f /fastboot + if eend $? "Root filesystem could not be mounted read/write"; then + rm -f /fastboot /forcefsck + fi } |