diff options
author | Bill Nottingham <notting@redhat.com> | 2008-05-07 13:46:55 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2008-05-07 13:46:55 -0400 |
commit | 8993d6ce77fd34fd17f5477d484caa6d36a4759e (patch) | |
tree | 7ff6ae27916b9c8c2a659494c295ccce01a9c673 /NetworkManager | |
parent | dc21589a6f657737edea88e39e4c819f9101ba2e (diff) | |
download | initscripts-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)
Diffstat (limited to 'NetworkManager')
-rwxr-xr-x | NetworkManager/dispatcher.d/05-netfs | 5 |
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 |