mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 12:37:15 +08:00
20 lines
220 B
Plaintext
20 lines
220 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
if [ -e "/etc/rc.d/ntpd" ]; then
|
||
|
case "$2" in
|
||
|
up)
|
||
|
/etc/rc.d/ntpd start
|
||
|
;;
|
||
|
vpn-up)
|
||
|
/etc/rc.d/ntpd start
|
||
|
;;
|
||
|
down)
|
||
|
/etc/rc.d/ntpd stop
|
||
|
;;
|
||
|
vpn-down)
|
||
|
/etc/rc.d/ntpd stop
|
||
|
;;
|
||
|
esac
|
||
|
fi
|
||
|
|