this attached script has to do two task
1, if there is no ip address of ntp server, then provide it in the /etc/ntp.conf
2, if /etc/ntp.conf contains the wrong IP address of NTP server, then fix it.
Problem:
following doesnt work
cat /etc/ntp.conf.org | sed 's/$CHECK_SERVER/$STRING/' > /etc/ntp.conf
i.e sed doesnt substitute the value of a variable $CHECK_SERVER with the value of another variable "$STRING"
please help