Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282782 - typo in baselayout-1, /etc/init.d/net.lo
Summary: typo in baselayout-1, /etc/init.d/net.lo
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
Depends on:
Reported: 2009-08-26 09:31 UTC by Eckard Brauer
Modified: 2009-10-19 19:13 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Eckard Brauer 2009-08-26 09:31:58 UTC
/etc/init.d/net.lo (and so all symlinks to it) contains the misspelled string

${MODULES[i]}_instlled or ${MODULE}_instlled

instead of *_installed. So after (indirect) re-evaluation of that, no shell function will be called. Unfortunately, no error is reported.

Reproducible: Always

Steps to Reproduce:
1. grep -rl "instlled" /etc/init.d/ /sbin /lib/rc*
2. try calling /etc/init.d/net.* with --debug
Actual Results:  
Only the /etc/init.d/net.* are affected. /lib/rcscripts/net/* contain only functions with *_installed.
None of the latter functions are called.

Expected Results:  
*_installed in /lib/rcscripts/net/* to be called
Comment 1 SpanKY gentoo-dev 2009-10-11 00:49:29 UTC
installed() {
    # We deliberately misspell this as _installed will probably be used
    # at some point
    eval "${MODULE}_instlled() { echo \"$*\"; }"
Comment 2 Eckard Brauer 2009-10-19 09:48:43 UTC
It's still used in the initialization/start of network interfaces and at least allowed my former WLAN stick (accidentally broken by my son) to successfully start, when corrected.
Comment 3 SpanKY gentoo-dev 2009-10-19 19:13:31 UTC
show me code installed by baselayout or some other package in the tree that is broken by this change