mirror of
https://github.com/openwrt/packages.git
synced 2026-01-11 04:04:50 +00:00
Merge pull request #14666 from pprindeville/isc-dhcp-support-hex-string-options
isc-dhcp: support hex strings as option arguments
This commit is contained in:
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
||||
PKG_NAME:=isc-dhcp
|
||||
UPSTREAM_NAME:=dhcp
|
||||
PKG_VERSION:=4.4.1
|
||||
PKG_RELEASE:=15
|
||||
PKG_RELEASE:=16
|
||||
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
@@ -74,6 +74,7 @@ typeof() {
|
||||
/^(true|false)$/ { print "bool\n"; next; }
|
||||
/^\d+$/ { print "integer\n"; next; }
|
||||
/^"[^"]*"$/ { print "string\n"; next; }
|
||||
/^[0-9a-fA-F]{2,2}(:[0-9a-fA-F]{2,2})*$/ { print "string\n"; next; }
|
||||
{ print "other\n"; next; }
|
||||
'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user