Browse Source

Merge pull request #5887 from pprindeville/fix-dhcpd.init-typeof

Fix dhcpd.init typeof
lilik-openwrt-22.03
Philip Prindeville 7 years ago
committed by GitHub
parent
commit
4750b7261e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions
  1. +2
    -2
      net/isc-dhcp/Makefile
  2. +1
    -1
      net/isc-dhcp/files/dhcpd.init
  3. +0
    -0
      net/isc-dhcp/files/dhcrelay.conf

+ 2
- 2
net/isc-dhcp/Makefile View File

@ -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
@ -196,7 +196,7 @@ define Package/isc-dhcp-relay-$(BUILD_VARIANT)/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dhcrelay $(1)/usr/sbin
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DATA) ./files/etc/config/dhcrelay $(1)/etc/config
$(INSTALL_DATA) ./files/dhcrelay.conf $(1)/etc/config
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/dhcrelay4.init $(1)/etc/init.d/dhcrelay4
endef


+ 1
- 1
net/isc-dhcp/files/dhcpd.init View File

@ -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; }


net/isc-dhcp/files/etc/config/dhcrelay → net/isc-dhcp/files/dhcrelay.conf View File


Loading…
Cancel
Save