/etc/init.d/ntp has NTPDATESERVERS=`grep '^[server|peer][[:space:]]*' /etc/ntp.conf | awk '{print $2}'` This regex isn't as precise as it needs to be, it will match a line like this: restrict default ignore kod A better regex would be: NTPDATESERVERS=`grep '^server\b\|^peer\b' /etc/ntp.conf | awk '{print $2}'`
or change grep to egrep ;)