repo.or.cz
/
tomato.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
vpnrouting: fix to works it with mipsel
[tomato.git]
/
release
/
src
/
router
/
others
/
ntp2ip
blob
5c330b6c615daae78b8eed2fc6595becac316185
1
#!/bin/sh
2
3
#cleaning
4
sed
-i
/
tmp
/
etc
/
hosts
-e
"/ntp2ip/d"
5
6
for
server
in
$
(
nvram get ntp_server
)
7
do
8
addresses
=
$
(
hostip
$server
)
9
for
address
in
$addresses
10
do
11
echo
"
$address
$server
#ntp2ip"
>> /
tmp
/
etc
/
hosts
12
done
13
done