Last change
on this file since 3341 was 3320, checked in by Bruno Cornec, 10 years ago |
- Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in
the move to 3.0
|
-
Property svn:executable
set to
*
|
File size:
547 bytes
|
Rev | Line | |
---|
[3320] | 1 | #!/bin/sh
|
---|
| 2 | # convert:
|
---|
| 3 |
|
---|
| 4 | # dhcptype=5
|
---|
| 5 | # serverid=172.16.42.102
|
---|
| 6 | # lease=97200
|
---|
| 7 | # interface=eth0
|
---|
| 8 | # ip=172.16.42.177
|
---|
| 9 | # subnet=255.255.255.0
|
---|
| 10 | # mask=24
|
---|
| 11 | # broadcast=172.16.22.255
|
---|
| 12 | # router=172.16.42.98
|
---|
| 13 | # dns=10.34.32.125 10.32.63.5 10.34.255.7 10.11.255.27
|
---|
| 14 | # domain=lab.example.com example.com
|
---|
| 15 | # ntpsrv=10.34.32.125 10.34.255.7
|
---|
| 16 |
|
---|
| 17 | # into:
|
---|
| 18 |
|
---|
| 19 | #let cfg=cfg+1
|
---|
| 20 | #ntpip[$cfg]=...
|
---|
| 21 |
|
---|
| 22 | exec >/dev/null
|
---|
| 23 | #exec >"$0.out" # debug
|
---|
| 24 | exec 2>&1
|
---|
| 25 |
|
---|
| 26 | test "$interface" || exit 1
|
---|
| 27 | test "$ip" || exit 1
|
---|
| 28 |
|
---|
| 29 | {
|
---|
| 30 | for n in $ntpsrv; do
|
---|
| 31 | echo "let cfg=cfg+1"
|
---|
| 32 | echo "ntpip[\$cfg]='$n'";
|
---|
| 33 | done
|
---|
| 34 | } >"$1"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.