0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-22 15:26:15 +00:00
packages/net/ntpd/files/ntpd.hotplug
Peter Wagner 325bba7095 ntpd: restart instead of killall and start
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2017-03-06 09:44:57 +01:00

11 lines
154 B
Bash

#!/bin/sh
NAME=ntpd
COMMAND=/etc/init.d/$NAME
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
$COMMAND enabled && {
$COMMAND restart
}
}