Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 113517

Summary: udhcpc scripts are mis-configured by default
Product: Gentoo Linux Reporter: Glenn L. McGrath <bug1>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: major CC: uberlord
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Glenn L. McGrath 2005-11-24 15:36:11 UTC
The file /usr/share/udhcpc/default.script needs to be modified before udhcpc
will work for anyone, it will not work by default.

$ cat /usr/share/udhcpc/default.script
#!/bin/sh
# Currently, we only dispatch according to command.  However, a more
# elaborate system might dispatch by command and interface or do some
# common initialization first, especially if more dhcp event notifications
# are added.

exec /usr/share/udhcpc/sample.$1
(end of file)

The $1 in sample.$1 is going to be one of [bound  deconfig  nak renew], so
sample.$1 will match files like sample.bound sample.deconfig sample.nak
sample.renew in the /usr/share/udhcpc/ directory.

The following files exist in the udhcpc directory.

$ ls /usr/share/udhcpc/
default.bound  default.deconfig  default.nak  default.renew  default.script

If default.script was changed to reference default.$1 instead of sample.$1 it
would avoid this problem.

-exec /usr/share/udhcpc/sample.$1
+exec /usr/share/udhcpc/default.$1

Marked this as major as it prevents the network from starting (i assume network
is a major feature)

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-11-24 15:43:49 UTC
baelayout-1.11 and upwards support udhcpc via our own scripts which are located
in /lib/rcscripts/net.modules.d/helpers.d

The udhcpc helper script in there is referenced by the udhcpc module in
/lib/rcscripts/net.modules.d which is loaded by net.eth0 if udhcpc is installed
and configured in /etc/conf.d/net