summaryrefslogtreecommitdiffstats
path: root/server/bin/comparedhcpopengnsys
diff options
context:
space:
mode:
Diffstat (limited to 'server/bin/comparedhcpopengnsys')
-rwxr-xr-xserver/bin/comparedhcpopengnsys2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/bin/comparedhcpopengnsys b/server/bin/comparedhcpopengnsys
index 53a9684c..c303995a 100755
--- a/server/bin/comparedhcpopengnsys
+++ b/server/bin/comparedhcpopengnsys
@@ -40,7 +40,7 @@ EOT
trap "rm -f $TMP_DHCP $TMP_MYSQL $TMP_MYCNF" 1 2 3 9 15
# Creo fichero temporal del dhcp
grep -v "#" $DHCPFILE |egrep -e "host " -e "hardware ethernet" -e fixed-address | sed -e 's/.$//' \
- |sed -e s/"^.*host "//g -e s/\{/\;/g -e s/"^.*hardware ethernet "/=/g -e s/"^.*fixed-address "/=/g \
+ | sed -e s/"^.*host[[:space:]]*"//g -e s/\{/\;/g -e s/"^.*hardware ethernet[[:space:]]*"/=/g -e s/"^.*fixed-address[[:space:]]*"/=/g \
| sed -e :a -e '$!N;s/\n=/ \;/;ta' -e 'P;D'\
| sed -e s/\ //g -e s/://g -e s/\;$//g -e s/\;\;/\;/g |sort > $TMP_DHCP