vpnrouting: fix to works it with mipsel
[tomato.git] / release / src / router / others / ntp2ip
blob5c330b6c615daae78b8eed2fc6595becac316185
1 #!/bin/sh
3 #cleaning
4 sed -i /tmp/etc/hosts -e "/ntp2ip/d"
6 for server in $(nvram get ntp_server)
7 do
8 addresses=$(hostip $server)
9 for address in $addresses
11 echo "$address $server #ntp2ip" >> /tmp/etc/hosts
12 done
13 done