diff options
author | Bill Nottingham <notting@redhat.com> | 2008-10-31 16:51:20 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2008-10-31 16:51:20 -0400 |
commit | 59ef85bd4f9412422aa40cfe7c435de3df0381b8 (patch) | |
tree | 9346ddf41612175c2f7d7110e754737694d6975d /NetworkManager/dispatcher.d/05-netfs | |
parent | 380323d0f6f75078ea6f77b14aceb99cbe33da7d (diff) | |
download | initscripts-59ef85bd4f9412422aa40cfe7c435de3df0381b8.tar initscripts-59ef85bd4f9412422aa40cfe7c435de3df0381b8.tar.gz initscripts-59ef85bd4f9412422aa40cfe7c435de3df0381b8.tar.bz2 initscripts-59ef85bd4f9412422aa40cfe7c435de3df0381b8.tar.xz initscripts-59ef85bd4f9412422aa40cfe7c435de3df0381b8.zip |
Add some error handling/hiding to NM dispatcher script (#469197)
This avoids suprious return codes, which NM logs.
Diffstat (limited to 'NetworkManager/dispatcher.d/05-netfs')
-rwxr-xr-x | NetworkManager/dispatcher.d/05-netfs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/NetworkManager/dispatcher.d/05-netfs b/NetworkManager/dispatcher.d/05-netfs index 46d4bb42..655c87aa 100755 --- a/NetworkManager/dispatcher.d/05-netfs +++ b/NetworkManager/dispatcher.d/05-netfs @@ -4,13 +4,13 @@ export LC_ALL=C if [ "$2" = "down" ]; then /sbin/ip route ls | grep -q ^default || { - [ -f /var/lock/subsys/netfs ] && /etc/rc.d/init.d/netfs stop - } + [ -f /var/lock/subsys/netfs ] && /etc/rc.d/init.d/netfs stop || : + } && { :; } fi if [ "$2" = "up" ]; then /sbin/ip -o route show dev "$1" | grep -q '^default' && { - /sbin/chkconfig netfs && /etc/rc.d/init.d/netfs start - } + /sbin/chkconfig netfs && /etc/rc.d/init.d/netfs start || : + } || { :; } fi |