Blame cntlm.NetworkManager
|
Matt Domsch |
6f348ee |
#!/bin/sh
|
|
Matt Domsch |
6f348ee |
|
|
Matt Domsch |
6f348ee |
export LC_ALL=C
|
|
Matt Domsch |
6f348ee |
|
|
Matt Domsch |
6f348ee |
if [ "$2" = "down" ]; then
|
|
Matt Domsch |
6f348ee |
/sbin/ip route ls | grep -q ^default || {
|
|
Matt Domsch |
6f348ee |
[ -f /var/lock/subsys/cntlmd ] && /etc/rc.d/init.d/cntlmd stop || :
|
|
Matt Domsch |
6f348ee |
} && { :; }
|
|
Matt Domsch |
6f348ee |
fi
|
|
Matt Domsch |
6f348ee |
|
|
Matt Domsch |
6f348ee |
if [ "$2" = "up" ]; then
|
|
Matt Domsch |
6f348ee |
/sbin/ip -o route show dev "$1" | grep -q '^default' && {
|
|
Matt Domsch |
6f348ee |
/sbin/chkconfig cntlmd && /etc/rc.d/init.d/cntlmd start || :
|
|
Matt Domsch |
6f348ee |
} || { :; }
|
|
Matt Domsch |
6f348ee |
fi
|