Sophie

Sophie

distrib > Fedora > 13 > x86_64 > by-pkgid > c3062ec90808454c979df5cf1cc430a5 > files > 6

initscripts-9.12-1.fc13.x86_64.rpm

#!/bin/sh

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 || :
	} && { :; }
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