Summary: | per essid options to dhcpcd do not work in baselayout-1.11.10-r4 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | georg.lippold |
Component: | [OLD] baselayout | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | uberlord |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 66472 |
Description
georg.lippold
2005-04-08 09:24:29 UTC
Probably. Edit /lib/rcscripts/net.modules.d/essidnet and change line 64 to read local essid LC_ALL=C essid=${ESSID//[![:word:]]/_} (So that's changing 1 line into 2 lines) OK, I did that but it doesn't fix the problem. The ${essid} and ${ESSID} now have the correct value. (I tested with echo). All other values in the script are proper too, and even /etc/resolv.conf is properly written by the script. I added a 'cat /etc/resolv.conf' before essidnet_pre_start() returns. Now the output of the script is (## are additional comments for your convenience) * Starting eth1 * Loading networking modules for eth1 * modules: iwconfig essidnet iptunnel ifconfig adsl dhcpcd apipa * iwconfig provides wireless * ifconfig provides interface * dhcpcd provides dhcp * Configuring wireless network for eth1 * Trying to force preferred in case they are hidden * Connecting to "WLAN-Georg" (WEP enabled - open) ... [ ok ] * eth1 connected to "WLAN-Georg" at 00:01:36:07:16:E1 * in managed mode (WEP enabled - open) * Configuring eth1 for "WLAN-Georg" ... ## for x in ${nameservers[@]} ; do echo ${x} ... nameserver 192.168.0.2 nameserver 134.102.200.14 nameserver 134.102.20.20 ## [[ -n ${x} ]] && echo "search ${x}" && echo "search ${x}" >> /etc/resolv.conf search wlan.netz informatik.uni-bremen.de uni-bremen.de ## cat /etc/resolv.conf # Generated by net-scripts essidnet module domain wlan.netz informatik.uni-bremen.de uni-bremen.de nameserver 192.168.0.2 nameserver 134.102.200.14 nameserver 134.102.20.20 search wlan.netz informatik.uni-bremen.de uni-bremen.de [ ok ] * Bringing up eth1 * dhcp * Running dhcpcd ... [ ok ] * eth1 received address 192.168.0.100 * Running postup function But finally, the /etc/resolv.conf reappears from somewhere. It might be an issue that I use pptp in my second environment. My pptpclient is pptpclient-1.5.0-r1 and upon starting it creates a /etc/resolv.conf.pppd-backup, but that is just a thought with not much evidence, since I deleted that file already, but the /etc/resolv.conf didn't get written properly. I don't know from where dhcpcd (or any other script involved) gets that backup it then restores. I already looked in the dhcpcd script, but didn't find the error on first sight. Maybe you have an idea? seems to be an issue with /lib/rcscripts/net.modules.d/helpers.d/config-system, that is the only other script that uses /etc/resolv.conf.sv. It should be called before essidnet is run, not after, because it then restores (upon startup) the just saved resolv.conf.sv to resolv.conf. I changed line 93 in essidnet to [[ -f /etc/resolv.conf ]] && mv /etc/resolv.conf /etc/resolv.conf.bak and now dhcpcd does not restore the newly created /etc/resolv.conf. Additionally, I added a new Line 29 to helpers.d/config-system [[ -f /etc/resolv.conf.bak ]] && mv /etc/resolv.conf.bak /etc/resolv.conf and now everything runs as expected |