mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 06:07:15 +08:00
20 lines
220 B
Bash
Executable File
20 lines
220 B
Bash
Executable File
#!/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
|
|
|