From: Philip Prindeville Date: Sun, 8 Apr 2018 22:07:01 +0000 (-0600) Subject: isc-dhcp: fix typeof regex for IP address pattern X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=6bfb46ebdbeae257f642668959c07717aac54b3c;p=openwrt-packages.git isc-dhcp: fix typeof regex for IP address pattern Missing backslash in "\d+" for last digit of dotted quad. Signed-off-by: Philip Prindeville --- diff --git a/net/isc-dhcp/Makefile b/net/isc-dhcp/Makefile index 0f8593177..f22d74327 100644 --- a/net/isc-dhcp/Makefile +++ b/net/isc-dhcp/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=isc-dhcp UPSTREAM_NAME:=dhcp PKG_VERSION:=4.4.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_LICENSE:=BSD-3-Clause PKG_LICENSE_FILES:=LICENSE diff --git a/net/isc-dhcp/files/dhcpd.init b/net/isc-dhcp/files/dhcpd.init index fdcbe2490..8eb20d101 100644 --- a/net/isc-dhcp/files/dhcpd.init +++ b/net/isc-dhcp/files/dhcpd.init @@ -122,7 +122,7 @@ static_hosts() { typeof() { echo "$1" | awk ' -/^\d+\.\d+\.\d+\.d+$/ { print "ip\n"; next; } +/^\d+\.\d+\.\d+\.\d+$/ { print "ip\n"; next; } /^(true|false)$/ { print "bool\n"; next; } /^\d+$/ { print "integer\n"; next; } /^"[^"]*"$/ { print "string\n"; next; }