Last change
on this file was 14358, checked in by rick, 6 years ago |
Fix documentation files no longer installed
|
-
Property svn:eol-style
set to
LF
-
Property svn:executable
set to
*
|
File size:
360 bytes
|
Rev | Line | |
---|
| 1 | #!/bin/sh
|
---|
| 2 | # Write dhcpd ranges to dhcpd-snmp.conf
|
---|
| 3 |
|
---|
| 4 | DHCPD="/usr/local/etc/dhcpd.conf"
|
---|
| 5 | DHSNMP="/usr/local/etc/dhcpd-snmp.conf"
|
---|
| 6 | INDEX="0"
|
---|
| 7 |
|
---|
| 8 | DHPOOL=`cat ${DHCPD} | grep range | awk '{print $2"-"$3}' | cut -d";" -f1`
|
---|
| 9 | for range in ${DHPOOL}
|
---|
| 10 | do
|
---|
| 11 | $((INDEX=INDEX+1))
|
---|
| 12 | echo "`echo "pool:" $INDEX", pool"$INDEX", "$range | \
|
---|
| 13 | sed 's/^.*(//'`" >> $DHSNMP
|
---|
| 14 | done
|
---|
| 15 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.