5 if [ "$2" = "down" ]; then
6 /sbin/ip route ls | grep -q '^default' || {
7 [ -f /var/lock/subsys/ddclient ] && /sbin/service ddclient stop || :
11 if [ "$2" = "up" ]; then
12 /sbin/ip -o route show dev "$1" | grep -q '^default' && {
13 /sbin/chkconfig ddclient && /sbin/service ddclient start || :