mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-12-11 10:53:45 +08:00
Fix rc-service command.
This commit is contained in:
parent
acf37f8de9
commit
920dfbc94e
@ -3,7 +3,7 @@
|
||||
# Detect OpenRC or BSD rc
|
||||
# Distributions may want to just have their command here instead of this
|
||||
if type rc-service >/dev/null 2>&1 && rc-service --exists ntpd; then
|
||||
ntpd_restart_cmd="rc-service -- ntpd --ifstarted --quiet restart"
|
||||
ntpd_restart_cmd="rc-service ntpd -- --ifstarted --quiet restart"
|
||||
elif [ -x /etc/rc.d/ntpd ]; then
|
||||
ntpd_restart_cmd="/etc/rc.d/ntpd restart"
|
||||
elif [ -x /usr/local/etc/rc.d/ntpd ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user