Sophie

Sophie

distrib > Fedora > 16 > x86_64 > media > updates-src > by-pkgid > ebd256b65166a29b55ad8f3a9ba826cc > files > 3

cntlm-0.92-1.fc16.src.rpm

#!/bin/sh

export LC_ALL=C

if [ "$2" = "down" ]; then
	/sbin/ip route ls | grep -q ^default || {
		[ -f /var/lock/subsys/cntlmd ] && /etc/rc.d/init.d/cntlmd stop || :
	} && { :; }
fi

if [ "$2" = "up" ]; then
	/sbin/ip -o route show dev "$1" | grep -q '^default' && {
		/sbin/chkconfig cntlmd && /etc/rc.d/init.d/cntlmd start || :
	} || { :; }
fi