From fe48fab2c2c35ccbfa3eec436d40739bc4b486da Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 19 Jun 2011 09:04:24 -0400 Subject: rc.sysinit: avoid use of regex match for USE* vars Although silly, this would positively match something such as USRBTRFS=deadeyes Instead, enumerate the match as a simple glob. Signed-off-by: Dave Reisner --- rc.sysinit | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rc.sysinit') diff --git a/rc.sysinit b/rc.sysinit index dd87633..8158f78 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -102,12 +102,12 @@ run_hook sysinit_udevsettled status "Bringing up loopback interface" ip link set up dev lo # FakeRAID devices detection -if [[ $USEDMRAID =~ yes|YES && -x $(type -P dmraid) ]]; then +if [[ $USEDMRAID = [Yy][Ee][Ss] && -x $(type -P dmraid) ]]; then status "Activating FakeRAID arrays" dmraid -i -ay fi # BTRFS devices detection -if [[ $USEBTRFS =~ yes|YES && -x $(type -P btrfs) ]]; then +if [[ $USEBTRFS = [Yy][Ee][Ss] && -x $(type -P btrfs) ]]; then status "Activating BTRFS volumes" btrfs device scan fi @@ -280,7 +280,7 @@ stat_busy "Mounting Local Filesystems" stat_done # enable monitoring of lvm2 groups, now that the filesystems are mounted rw -if [[ $USELVM =~ yes|YES && -x $(type -P lvm) && -d /sys/block ]]; then +if [[ $USELVM = [Yy][Ee][Ss] && -x $(type -P lvm) && -d /sys/block ]]; then status "Activating monitoring of LVM2 groups" \ vgchange --monitor y >/dev/null fi -- cgit v1.2.3