| 12 |
default_flags="-c 1 -s" |
default_flags="-c 1 -s" |
| 13 |
if [ -e /etc/ntpd.conf ]; then |
if [ -e /etc/ntpd.conf ]; then |
| 14 |
tmp=`cat /etc/ntpd.conf | grep ^server | awk '{ print $2 }' | head -n1` |
tmp=`cat /etc/ntpd.conf | grep ^server | awk '{ print $2 }' | head -n1` |
| 15 |
tmp="${tmp:-pool.ntp.org}" |
tmp="${tmp:-1.freewrt.pool.ntp.org}" |
| 16 |
fi |
fi |
| 17 |
ntpclient_server="${ntpclient_server:-$tmp}" |
ntpclient_server="${ntpclient_server:-$tmp}" |
| 18 |
ntpclient_flags="${ntpclient_flags:-$default_flags}" |
ntpclient_flags="${ntpclient_flags:-$default_flags}" |
| 32 |
;; |
;; |
| 33 |
esac |
esac |
| 34 |
exit $? |
exit $? |
|
|
|