Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 0c0774ac2c413cef3a2dc2d0db236961 > files > 6

initscripts-9.30.1-1.fc15.i686.rpm

#!/bin/sh

export LC_ALL=C
export SYSTEMCTL_SKIP_REDIRECT=1

if [ "$2" = "down" ]; then
	/sbin/ip route ls | grep -q ^default || {
		[ -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 || :
	} || { :; }
fi