Blame | Last modification | View Log | RSS feed
#!/bin/shexport LC_ALL=Cif [ "$2" = "down" ]; then/sbin/ip route ls | grep -q ^default || {[ -f /var/lock/subsys/netfs ] && /etc/rc.d/init.d/netfs stop || :} && { :; }fiif [ "$2" = "up" ]; then/sbin/ip -o route show dev "$1" | grep -q '^default' && {/sbin/chkconfig netfs && /etc/rc.d/init.d/netfs start || :} || { :; }fi