base-files: add udhcpc vendorid option (#7744)

SVN-Revision: 23279
This commit is contained in:
Jo-Philipp Wich 2010-10-06 21:21:28 +00:00
parent badd8ffee3
commit d856ed78ad
2 changed files with 4 additions and 2 deletions

View File

@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=base-files PKG_NAME:=base-files
PKG_RELEASE:=59 PKG_RELEASE:=60
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
PKG_BUILD_DEPENDS:=opkg/host PKG_BUILD_DEPENDS:=opkg/host

View File

@ -344,12 +344,13 @@ setup_interface() {
local pidfile="/var/run/dhcp-${iface}.pid" local pidfile="/var/run/dhcp-${iface}.pid"
service_kill udhcpc "$pidfile" 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 ipaddr "$config" ipaddr
config_get netmask "$config" netmask config_get netmask "$config" netmask
config_get hostname "$config" hostname config_get hostname "$config" hostname
config_get proto1 "$config" proto config_get proto1 "$config" proto
config_get clientid "$config" clientid config_get clientid "$config" clientid
config_get vendorid "$config" vendorid
config_get_bool broadcast "$config" broadcast 0 config_get_bool broadcast "$config" broadcast 0
[ -z "$ipaddr" ] || \ [ -z "$ipaddr" ] || \
@ -364,6 +365,7 @@ setup_interface() {
${ipaddr:+-r $ipaddr} \ ${ipaddr:+-r $ipaddr} \
${hostname:+-H $hostname} \ ${hostname:+-H $hostname} \
${clientid:+-c $clientid} \ ${clientid:+-c $clientid} \
${vendorid:+-V $vendorid} \
-b -p "$pidfile" $broadcast \ -b -p "$pidfile" $broadcast \
${dhcpopts:- -O rootpath -R &} ${dhcpopts:- -O rootpath -R &}
;; ;;