aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/network
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-03-03 11:24:05 -0500
committerBill Nottingham <notting@redhat.com>2008-03-03 11:24:05 -0500
commit49cc2adc8a17864266414b21e8687463b854dd66 (patch)
treeb6a270344dd3357e39ed85e8d2089f8281e9578a /rc.d/init.d/network
parent7f7ca896e6cf5c61243d56ae3faaf8edb3872469 (diff)
downloadinitscripts-49cc2adc8a17864266414b21e8687463b854dd66.tar
initscripts-49cc2adc8a17864266414b21e8687463b854dd66.tar.gz
initscripts-49cc2adc8a17864266414b21e8687463b854dd66.tar.bz2
initscripts-49cc2adc8a17864266414b21e8687463b854dd66.tar.xz
initscripts-49cc2adc8a17864266414b21e8687463b854dd66.zip
Skip network shutdown if there is a '_rnetdev' root device (part of #435358, <pjones@redhat.com>)
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 60a0a8dd..78370f9e 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -171,7 +171,7 @@ case "$1" in
rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $3; }}' /etc/mtab)
rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
- if [[ "$rootfs" =~ ^nfs ]] || [[ "$rootopts" =~ "_netdev" ]] ; then
+ if [[ "$rootfs" =~ ^nfs ]] || [[ "$rootopts" =~ "_netdev|_rnetdev" ]] ; then
exit 1
fi