base-files: add udhcpc vendorid option (#7744)
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 6 Oct 2010 21:21:28 +0000 (21:21 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 6 Oct 2010 21:21:28 +0000 (21:21 +0000)
SVN-Revision: 23279

package/base-files/Makefile
package/base-files/files/lib/network/config.sh

index 5a6c1a969a87dbc4bf9543adadb67b51a08672fc..bd77d3438254aa7d545ae4702b1eb1679a673f32 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=base-files
-PKG_RELEASE:=59
+PKG_RELEASE:=60
 
 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
 PKG_BUILD_DEPENDS:=opkg/host
index c948c83a85bbc21bcb3d0648a82402b93a4d3b4c..d285da23adebcf5b49f8aeb79fd427cc9beef6a7 100755 (executable)
@@ -344,12 +344,13 @@ setup_interface() {
                        local pidfile="/var/run/dhcp-${iface}.pid"
                        service_kill udhcpc "$pidfile"
 
-                       local ipaddr netmask hostname proto1 clientid broadcast
+                       local ipaddr netmask hostname proto1 clientid vendorid broadcast
                        config_get ipaddr "$config" ipaddr
                        config_get netmask "$config" netmask
                        config_get hostname "$config" hostname
                        config_get proto1 "$config" proto
                        config_get clientid "$config" clientid
+                       config_get vendorid "$config" vendorid
                        config_get_bool broadcast "$config" broadcast 0
 
                        [ -z "$ipaddr" ] || \
@@ -364,6 +365,7 @@ setup_interface() {
                                ${ipaddr:+-r $ipaddr} \
                                ${hostname:+-H $hostname} \
                                ${clientid:+-c $clientid} \
+                               ${vendorid:+-V $vendorid} \
                                -b -p "$pidfile" $broadcast \
                                ${dhcpopts:- -O rootpath -R &}
                ;;