aboutsummaryrefslogtreecommitdiffstats
path: root/NetworkManager
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-10-31 16:51:20 -0400
committerBill Nottingham <notting@redhat.com>2008-10-31 16:51:20 -0400
commit59ef85bd4f9412422aa40cfe7c435de3df0381b8 (patch)
tree9346ddf41612175c2f7d7110e754737694d6975d /NetworkManager
parent380323d0f6f75078ea6f77b14aceb99cbe33da7d (diff)
downloadinitscripts-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')
-rwxr-xr-xNetworkManager/dispatcher.d/05-netfs8
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