diff options
author | Travis Kemen <thepeople@openwrt.org> | 2007-10-06 03:12:04 +0000 |
---|---|---|
committer | Travis Kemen <thepeople@openwrt.org> | 2007-10-06 03:12:04 +0000 |
commit | a8eb7c176331ee42aa1e412fc2a2d83fabf93c45 (patch) | |
tree | 2e911b69ff76d513da6a0a0f4e4acc7b01904e62 /package/base-files/files/lib | |
parent | c947d8532b84610f63e6c44d4182ce6ab54f66ad (diff) | |
download | master-187ad058-a8eb7c176331ee42aa1e412fc2a2d83fabf93c45.tar.gz master-187ad058-a8eb7c176331ee42aa1e412fc2a2d83fabf93c45.tar.bz2 master-187ad058-a8eb7c176331ee42aa1e412fc2a2d83fabf93c45.zip |
add clientid to udhcpc thanks pjama
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9159 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/lib')
-rwxr-xr-x | package/base-files/files/lib/network/config.sh | 3 |
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" ;; *) |