summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config/systemconfig.sh
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/LinHES-config/systemconfig.sh')
-rwxr-xr-xabs/core-testing/LinHES-config/systemconfig.sh29
1 files changed, 6 insertions, 23 deletions
diff --git a/abs/core-testing/LinHES-config/systemconfig.sh b/abs/core-testing/LinHES-config/systemconfig.sh
index 9f4df7a..06402a6 100755
--- a/abs/core-testing/LinHES-config/systemconfig.sh
+++ b/abs/core-testing/LinHES-config/systemconfig.sh
@@ -371,32 +371,15 @@ function setupnciddaemon {
}
function setupntp () {
-cat > ${BASE}/etc/ntp.conf << EOF
-# default restrictions
-restrict default noquery notrust nomodify
-# NTP drift file - used to keep track of your system clocks
-# time deviation
-driftfile /etc/ntp.drift
-
-# NTP log file
-logfile /var/log/ntp.log
-# override the default restrictions here, servers that can query
-restrict 192.168.0.0 mask 255.255.0.0 nomodify
-restrict 10.0.0.0 mask 255.0.00 nomodify
-
-#servers to sync with
-EOF
#this is used for backend or standlone types
- if [ $1 = "1" ]
+ if [ $1 = "1" ]
then
- echo "server pool.ntp.org" >> ${BASE}/etc/ntp.conf
- #echo "server ntp3.sf-bay.org" >> ${BASE}/etc/ntp.conf
- echo "restrict pool.ntp.org" >> ${BASE}/etc/ntp.conf
- #echo "restrict ntp3.sf-bay.org noquery nomodify" >> ${BASE}/etc/ntp.conf
-
+ #MBE/STD use deafult
+ echo "Not changing ntp config"
else
- echo "server $dbhost" >> ${BASE}/etc/ntp.conf
- echo "restrict $dbhost noquery nomodify" >> ${BASE}/etc/ntp.conf
+ #echo "server $dbhost" >> ${BASE}/etc/ntp.conf
+ echo "setting ntp to $dbhost"
+ sed -i "s/pool.ntp.org/$dbhost/g" ${BASE}/etc/ntp.conf
fi