aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib
diff options
context:
space:
mode:
authorTravis Kemen <thepeople@openwrt.org>2007-10-06 03:12:04 +0000
committerTravis Kemen <thepeople@openwrt.org>2007-10-06 03:12:04 +0000
commit1c09c5587558594d53b93bd22eeafa2582569c1f (patch)
treef02610ba895726022e5d91ed7894d4b9f75ec40d /package/base-files/files/lib
parent21a246d5d6b0ff0b1c632d7700a31886c5f09b23 (diff)
downloadupstream-1c09c5587558594d53b93bd22eeafa2582569c1f.tar.gz
upstream-1c09c5587558594d53b93bd22eeafa2582569c1f.tar.bz2
upstream-1c09c5587558594d53b93bd22eeafa2582569c1f.zip
add clientid to udhcpc thanks pjama
SVN-Revision: 9159
Diffstat (limited to 'package/base-files/files/lib')
-rwxr-xr-xpackage/base-files/files/lib/network/config.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh
index 3ff65ff8f5..81b60f7470 100755
--- a/package/base-files/files/lib/network/config.sh
+++ b/package/base-files/files/lib/network/config.sh
@@ -177,13 +177,14 @@ setup_interface() {
config_get netmask "$config" netmask
config_get hostname "$config" hostname
config_get proto1 "$config" proto
+ config_get clientid "$config" clientid
[ -z "$ipaddr" ] || \
$DEBUG ifconfig "$iface" "$ipaddr" ${netmask:+netmask "$netmask"}
# don't stay running in background if dhcp is not the main proto on the interface (e.g. when using pptp)
[ ."$proto1" != ."$proto" ] && dhcpopts="-n -q"
- $DEBUG eval udhcpc -t 0 -i "$iface" ${ipaddr:+-r $ipaddr} ${hostname:+-H $hostname} -b -p "$pidfile" ${dhcpopts:- -R &}
+ $DEBUG eval udhcpc -t 0 -i "$iface" ${ipaddr:+-r $ipaddr} ${hostname:+-H $hostname} ${clientid:+-c $clientid} -b -p "$pidfile" ${dhcpopts:- -R &}
lock -u "/var/lock/dhcp-$iface"
;;
*)