summaryrefslogtreecommitdiff
path: root/package/base-files/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-10-06 21:21:28 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-10-06 21:21:28 +0000
commitd856ed78ada03b57d3c0021eb9ecea33a6d27855 (patch)
treef1415ed1ea6c0e5e863553a230583bf77f4034d9 /package/base-files/files
parentbadd8ffee3f2c34fe9a8188ff1f58a9a5dde874c (diff)
downloadmtk-20170518-d856ed78ada03b57d3c0021eb9ecea33a6d27855.zip
mtk-20170518-d856ed78ada03b57d3c0021eb9ecea33a6d27855.tar.gz
mtk-20170518-d856ed78ada03b57d3c0021eb9ecea33a6d27855.tar.bz2
base-files: add udhcpc vendorid option (#7744)
SVN-Revision: 23279
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-xpackage/base-files/files/lib/network/config.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh
index c948c83..d285da2 100755
--- a/package/base-files/files/lib/network/config.sh
+++ b/package/base-files/files/lib/network/config.sh
@@ -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 &}
;;