diff options
author | Kurt J. Bosch <kjb-temp-2009@alpenjodel.de> | 2011-07-03 18:44:53 +0200 |
---|---|---|
committer | Kurt J. Bosch <kjb-temp-2009@alpenjodel.de> | 2011-07-10 18:08:35 +0200 |
commit | d1f4307c2e7fb56a6f699bf2bfaa3e67197c46ef (patch) | |
tree | 34024821d5ab618cc528a715aecd837cb8ffa36b | |
parent | 02de29190c10dab4d1b43062d71eff11b9c980b5 (diff) | |
download | initscripts-d1f4307c2e7fb56a6f699bf2bfaa3e67197c46ef.tar.xz |
rc.sysinit: Declare $FORCEFSCK read-only
This prevents sysinit_prefsck hooks from overwriting the value.
-rwxr-xr-x | rc.sysinit | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -179,6 +179,7 @@ FSCK_ERR=/dev/stdout FSCK_FD= FORCEFSCK= [[ -f /forcefsck ]] || is_in_array forcefsck $(< /proc/cmdline) && FORCEFSCK="-- -f" +declare -r FORCEFSCK run_hook sysinit_prefsck if [[ -x $(type -P fsck) ]]; then stat_busy "Checking Filesystems" |