From 0b8dbba23813e45bee0e5d3ab12e79527d52db4b Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 24 Mar 2012 14:56:30 -0400 Subject: init_functions: avoid special treatment for forcefsck I don't want to make a habit of treating cmdline opts as special if they don't need to be, and this is a case where some simple PE magic can be substituted. Signed-off-by: Dave Reisner --- init_functions | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/init_functions b/init_functions index 400bff3..081ba62 100644 --- a/init_functions +++ b/init_functions @@ -54,7 +54,6 @@ parse_cmdline() { \#*) break ;; # special cases rw|ro) rwopt=$w ;; - forcefsck) FORCEFSCK=-f ;; # abide by shell variable naming rules [[:alpha:]_]*=*) rhs=${w#*=} @@ -102,7 +101,7 @@ fsck_device() { fi msg ":: performing fsck on '$1'" - FSTAB_FILE=/dev/null fsck -Ta -C"$FSCK_FD" "$1" -- $FORCEFSCK + FSTAB_FILE=/dev/null fsck -Ta -C"$FSCK_FD" "$1" -- ${forcefsck+-f} } fsck_root() { -- cgit v1.2.3-24-g4f1b