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:53:07 -0400 |
commit | 19680b1553cd321d44b0e9cf6a47e718aa9b088c (patch) | |
tree | 7ff6ae27916b9c8c2a659494c295ccce01a9c673 /NetworkManager | |
parent | dc21589a6f657737edea88e39e4c819f9101ba2e (diff) | |
download | initscripts-19680b1553cd321d44b0e9cf6a47e718aa9b088c.tar initscripts-19680b1553cd321d44b0e9cf6a47e718aa9b088c.tar.gz initscripts-19680b1553cd321d44b0e9cf6a47e718aa9b088c.tar.bz2 initscripts-19680b1553cd321d44b0e9cf6a47e718aa9b088c.tar.xz initscripts-19680b1553cd321d44b0e9cf6a47e718aa9b088c.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 |