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