diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2010-01-24 22:16:26 +0200 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-01-25 12:45:13 -0500 |
commit | a67b4dad9548082cbc79536c46281d390d99faf6 (patch) | |
tree | 7c5236f9337cb6d3b35fa0979c0505ad7b613995 /rc.d/init.d/network | |
parent | d9d2e42410e211e180a5ebbb968a1df32077f457 (diff) | |
download | initscripts-a67b4dad9548082cbc79536c46281d390d99faf6.tar initscripts-a67b4dad9548082cbc79536c46281d390d99faf6.tar.gz initscripts-a67b4dad9548082cbc79536c46281d390d99faf6.tar.bz2 initscripts-a67b4dad9548082cbc79536c46281d390d99faf6.tar.xz initscripts-a67b4dad9548082cbc79536c46281d390d99faf6.zip |
Don't quote regex argument to bash's =~.
Diffstat (limited to 'rc.d/init.d/network')
-rwxr-xr-x | rc.d/init.d/network | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network index 07df54e0..71e67ee0 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -183,7 +183,7 @@ case "$1" in rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts) rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab) - if [[ "$rootfs" == nfs* || "$rootopts" =~ "_r?netdev" ]] ; then + if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then exit 1 fi |