[OpenWrt-Devel] Default dhcp (client) hostname is unset - Luci implies $(hostname)

Aaron Z aczlan+openwrt at gmail.com
Tue Oct 7 20:46:58 EDT 2014

On Tue, Oct 7, 2014 at 7:02 PM, Justin Vallon <justinvallon at gmail.com> wrote:
> So either:
> 1) The dhcp hostname option should be blank to indicate no default value
> (maintain current behavior)
> 2) When udhcpc is invoked, it should pass "-H $(hostname)" in case of
> default (make backend behave as Luci implies)
> IMO: I find it nice that many hosts pass their hostname automatically,
> so that the DHCP active lease list is useful, versus a lot of "?"
> entries and ethernet addresses.  So, I would vote for 2.
> Opinions?  Where would this bug get posted?  (wiki.openwrt.org is down,
> so I cannot check the wiki)

The wiki is working for me now... That info is stored on a per
interface basis in /etc/config/network (see Link[1]) and is not set by
default, although it may pull from /etc/config/system (see Link[2]) if
unset in /etc/config/network.
The default value in /etc/config/system is 'OpenWrt'

Link[1]: http://wiki.openwrt.org/doc/uci/network#protocol.dhcp
Link[2]: http://wiki.openwrt.org/doc/uci/system

Aaron Z
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects.
— Robert Heinlein, Time Enough for Love
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list