aboutsummaryrefslogtreecommitdiffstats
path: root/NetworkManager/dispatcher.d
diff options
context:
space:
mode:
Diffstat (limited to 'NetworkManager/dispatcher.d')
-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