aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-05-07 13:46:55 -0400
committerBill Nottingham <notting@redhat.com>2008-05-07 13:46:55 -0400
commit8993d6ce77fd34fd17f5477d484caa6d36a4759e (patch)
tree7ff6ae27916b9c8c2a659494c295ccce01a9c673
parentdc21589a6f657737edea88e39e4c819f9101ba2e (diff)
downloadinitscripts-8993d6ce77fd34fd17f5477d484caa6d36a4759e.tar
initscripts-8993d6ce77fd34fd17f5477d484caa6d36a4759e.tar.gz
initscripts-8993d6ce77fd34fd17f5477d484caa6d36a4759e.tar.bz2
initscripts-8993d6ce77fd34fd17f5477d484caa6d36a4759e.tar.xz
initscripts-8993d6ce77fd34fd17f5477d484caa6d36a4759e.zip
Fix check for default route, so that netfs gets started correctly (#445509)
-rwxr-xr-xNetworkManager/dispatcher.d/05-netfs5
1 files changed, 2 insertions, 3 deletions
diff --git a/NetworkManager/dispatcher.d/05-netfs b/NetworkManager/dispatcher.d/05-netfs
index 089b7261..46d4bb42 100755
--- a/NetworkManager/dispatcher.d/05-netfs
+++ b/NetworkManager/dispatcher.d/05-netfs
@@ -9,9 +9,8 @@ if [ "$2" = "down" ]; then
fi
if [ "$2" = "up" ]; then
- defdev=$(/sbin/ip route ls | awk '/^default/ { print $NF }')
- if [ "$defdev" = "$1" ]; then
+ /sbin/ip -o route show dev "$1" | grep -q '^default' && {
/sbin/chkconfig netfs && /etc/rc.d/init.d/netfs start
- fi
+ }
fi