aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/network
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2009-12-19 16:13:21 +0200
committerBill Nottingham <notting@redhat.com>2010-01-07 17:46:14 -0500
commit655de403ad25a5332b25174009107884f9b30420 (patch)
treecdb4c75af4d48c5fbd181bd8a10d1d1bb4070606 /rc.d/init.d/network
parentd50d6fae1bfc47e65001aeb36daa2ac96f44e421 (diff)
downloadinitscripts-655de403ad25a5332b25174009107884f9b30420.tar
initscripts-655de403ad25a5332b25174009107884f9b30420.tar.gz
initscripts-655de403ad25a5332b25174009107884f9b30420.tar.bz2
initscripts-655de403ad25a5332b25174009107884f9b30420.tar.xz
initscripts-655de403ad25a5332b25174009107884f9b30420.zip
Simplify various string match constructs.
Diffstat (limited to 'rc.d/init.d/network')
-rwxr-xr-xrc.d/init.d/network2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 40802432..d8d39089 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" =~ "_netdev|_rnetdev" ]] ; then
+ if [[ "$rootfs" == nfs* || "$rootopts" =~ "_r?netdev" ]] ; then
exit 1
fi