You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
264 B
14 lines
264 B
#!/bin/sh
|
|
|
|
. /etc/init.d/functions
|
|
. /etc/init.d/globals
|
|
|
|
case "$1" in
|
|
start)
|
|
ntpatboot=$(get_setting network_ntpatboot)
|
|
ntpserver=$(get_setting network_ntpserver)
|
|
if [ "$ntpatboot" == "true" ]; then
|
|
ntpdate ${ntpserver:-0.de.pool.ntp.org}
|
|
fi
|
|
;;
|
|
esac
|
|
|