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