diff options
author | Dave Reisner <d@falconindy.com> | 2011-06-19 09:04:24 -0400 |
---|---|---|
committer | Dave Reisner <d@falconindy.com> | 2011-06-19 09:04:24 -0400 |
commit | fe48fab2c2c35ccbfa3eec436d40739bc4b486da (patch) | |
tree | 25eb90cb1a2e417fb605255b43b94b5728501904 /rc.sysinit | |
parent | f5d571110b9cfe45ecb32602510c924409e52d63 (diff) |
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 <d@falconindy.com>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |