#!/bin/sh cat > /mod/etc/ntpd.conf << EOF # Addresses to listen on (ntpd does not listen by default) listen on $(ifconfig lan | head -n 2 | tail -n 1 | cut -d: -f2 | cut -d" " -f 1) # use a random selection of 8 public stratum 2 servers # see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers servers pool.ntp.org EOF