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:47:06 -0500 |
commit | 513da2ffa0e3add94ce4eb4dd1cc64cf49ba577e (patch) | |
tree | 72759241ddfac81626be63ca9f2962195ca4da07 /rc.d | |
parent | 94962e935e5991853c0f5253830c9dba16146382 (diff) | |
download | initscripts-513da2ffa0e3add94ce4eb4dd1cc64cf49ba577e.tar initscripts-513da2ffa0e3add94ce4eb4dd1cc64cf49ba577e.tar.gz initscripts-513da2ffa0e3add94ce4eb4dd1cc64cf49ba577e.tar.bz2 initscripts-513da2ffa0e3add94ce4eb4dd1cc64cf49ba577e.tar.xz initscripts-513da2ffa0e3add94ce4eb4dd1cc64cf49ba577e.zip |
Don't quote regex argument to bash's =~.
Diffstat (limited to 'rc.d')
-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 13ad4e78..32dc190f 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -161,7 +161,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" =~ "_netdev|_rnetdev" ]] ; then + if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then exit 1 fi |