Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113517 - udhcpc scripts are mis-configured by default
Summary: udhcpc scripts are mis-configured by default
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-24 15:36 UTC by Glenn L. McGrath
Modified: 2005-11-24 15:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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