COMMAND=/usr/bin/chronyc
|
|
|
|
[ -x $COMMAND ] || exit 0
|
|
|
|
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && $COMMAND online
|
|
[ "$ACTION" = "ifdown" -a "$INTERFACE" = "wan" ] && $COMMAND offline
|