


Code: Select all
(chroot) sysresccd log # /etc/init.d/net.wlan0 start
* Caching service dependencies ... [ ok ]
* Starting udevd ...
* start-stop-daemon: /sbin/udevd is already running [ !! ]
* ERROR: udev failed to start
* Starting udevd ... [ ok ]
* Populating /dev with existing devices through uevents ... [ ok ]
* Waiting for uevents to be processed ... [ ok ]
* Checking local filesystems ...
/dev/sda1 is mounted. e2fsck: Cannot continue, aborting.
* Operational error [ !! ]
* Mounting local filesystems ... [ ok ]
* Bringing up interface wlan0
* Caching network module dependencies
* Starting wpa_supplicant on wlan0 ...
Line 5: unknown global field 'network{'.
Line 5: Invalid configuration line 'network{'.
Line 6: unknown global field 'ssid="adramalech"'.
Line 6: Invalid configuration line 'ssid="adramalech"'.
Line 7: unknown global field 'proto=WPA2'.
Line 7: Invalid configuration line 'proto=WPA2'.
Line 8: unknown global field 'key_mgmt=WPA_PSK'.
Line 8: Invalid configuration line 'key_mgmt=WPA_PSK'.
Line 9: unknown global field 'pairwise=CCMP TKIP'.
Line 9: Invalid configuration line 'pairwise=CCMP TKIP'.
Line 10: unknown global field 'psk="ZEro((!@34"'.
Line 10: Invalid configuration line 'psk="ZEro((!@34"'.
Line 11: unknown global field 'priority=5'.
Line 11: Invalid configuration line 'priority=5'.
Line 12: unknown global field '}'.
Line 12: Invalid configuration line '}'.
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.
* start-stop-daemon: failed to start `/usr/sbin/wpa_supplicant' [ !! ]
* ERROR: net.wlan0 failed to start
Code: Select all
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
network{
ssid="adramalech"
proto=WPA2
key_mgmt=WPA_PSK
pairwise=CCMP TKIP
psk="XXXXXXXXXX"
priority=5
}
Code: Select all
Network
Due to baselayout and OpenRC being broken into two different packages, your net.eth0 initscript may disappear during the upgrade process. To replace this initscript please perform the following:
Code Listing 2.9: Adding back missing net.eth0 script
# cd /etc/init.d
# ln -s net.lo net.eth0
If you are missing any other network initscripts, follow the instructions above to re-add them. Simply replace eth0 with the name of your network device.
Also, /etc/conf.d/net no longer uses bash-style arrays for configuration. Please review /usr/share/doc/openrc-<version>/net.example for configuration instructions. Conversion should be relatively straight-forward, for example a static IP assignment would change as follows:
Code Listing 2.10: Old /etc/conf.d/net style
config_eth0=( "192.168.1.37 netmask 255.255.255.0 brd 192.168.1.255" )
routes_eth0=( "default via 192.168.1.100" )
Code Listing 2.11: New /etc/conf.d/net style
config_eth0="192.168.1.37 netmask 255.255.255.0 brd 192.168.1.255"
routes_eth0="default via 192.168.1.100" Code: Select all
/etc/init.d/net.wlan0 restartCode: Select all
ifconfigCode: Select all
ifconfig -aCode: Select all
iwconfigCode: Select all
iwlist scanCode: Select all
cat /etc/conf.d/netCode: Select all
rc-update showCode: Select all
emerge hal dbus udev policykit consolekitCode: Select all
rc-update add dbus default
rc-update add hald default
rc-update add consolekit default
rc-update add udev sysinit
Code: Select all
wlan0 Link encap:Ethernet HWaddr 00:24:2b:79:31:79
inet addr:192.168.80.120 Bcast:192.168.80.255 Mask:255.255.255.0
inet6 addr: fe80::224:2bff:fe79:3179/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:153868 errors:0 dropped:0 overruns:0 frame:0
TX packets:79732 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:221420997 (211.1 MiB) TX bytes:7518186 (7.1 MiB)
Code: Select all
wlan0 Link encap:Ethernet HWaddr 00:24:2b:79:31:79
inet addr:192.168.80.120 Bcast:192.168.80.255 Mask:255.255.255.0
inet6 addr: fe80::224:2bff:fe79:3179/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:154564 errors:0 dropped:0 overruns:0 frame:0
TX packets:80866 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:221780728 (211.5 MiB) TX bytes:7674816 (7.3 MiB)
Code: Select all
wlan0 IEEE 802.11bg ESSID:"adramalech"
Mode:Managed Frequency:2.447 GHz Access Point: 00:26:5A:F5:23:EF
Bit Rate=54 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=67/70 Signal level=-43 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
Code: Select all
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
modules="wpa_supplicant"
Code: Select all
wlan0 Scan completed :
Cell 01 - Address: 00:26:5A:F5:23:EF
Channel:8
Frequency:2.447 GHz (Channel 8)
Quality=66/70 Signal level=-44 dBm
Encryption key:on
ESSID:"adramalech"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=000000dd09b5b96f
Extra: Last beacon: 23ms ago
IE: Unknown: 000A616472616D616C656368
IE: Unknown: 010482848B96
IE: Unknown: 030108
IE: Unknown: 2A0100
IE: Unknown: 32080C1218243048606C
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : TKIP CCMP
Authentication Suites (1) : PSK
IE: Unknown: 2D1A4E101BFFFF000000000000000000000000000000000000000000
IE: Unknown: 3D1608071B0000000F000000000000000000000000000000
IE: Unknown: DD1E00904C336E101BFFFF000000000000000000000000000000000000000000
IE: Unknown: DD1A00904C340807030000000F000000000000000000000000000000
IE: Unknown: DD7F0050F204104A0001101044000102103B00010310470010A2B02CAA026731C08F939C9777B063531021000E442D4C696E6B2053797374656D73102300074449522D363535102400024134104200046E6F6E651054000800060050F204000110110017587472656D65204E204749474142495420526F75746572100800020084
Cell 02 - Address: 00:23:69:98:30:EA
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=29/70 Signal level=-81 dBm
Encryption key:on
ESSID:"7636linksys"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=00000000004f54dd
Extra: Last beacon: 924ms ago
IE: Unknown: 000B373633366C696E6B737973
IE: Unknown: 010882848B960C121824
IE: Unknown: 030101
IE: Unknown: 2A0100
IE: Unknown: 32043048606C
IE: Unknown: DD180050F2020101020003A4000027A4000042435E0062322F00
IE: Unknown: DD1E00904C334C101BFFFF000000000000000000000000000000000000000000
IE: Unknown: 2D1A4C101BFFFF000000000000000000000000000000000000000000
IE: Unknown: DD1A00904C3401001B00000000000000000000000000000000000000
IE: Unknown: 3D1601001B00000000000000000000000000000000000000
IE: Unknown: DD0900037F01010000FF7F
IE: Unknown: DD050050F20500
IE: Unknown: DD770050F204104A0001101044000102103B0001031047001006369686068606369686068626A61676102100104C696E6B73797320627920436973636F102300085752543136304E4C1024000876312E30302E30311042000231371054000800060050F2040001101100085752543136304E4C100800020084
IE: Unknown: DD0A00037F04010000000000
Cell 03 - Address: 00:22:3F:AC:C1:16
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=24/70 Signal level=-86 dBm
Encryption key:on
ESSID:"NETGEAR"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
12 Mb/s; 24 Mb/s; 36 Mb/s
Bit Rates:9 Mb/s; 18 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=00000493a23b8181
Extra: Last beacon: 56ms ago
IE: Unknown: 00074E455447454152
IE: Unknown: 010882848B960C183048
IE: Unknown: 03010B
IE: Unknown: 2A0100
IE: Unknown: 32041224606C
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
Code: Select all
consolefont | boot
modules | boot
termencoding | boot
killprocs | shutdown
swap | boot
mtab | boot
hostname | boot
savecache | shutdown
sysctl | boot
hwclock | boot
procfs | boot
net.wlan0 | default
bootmisc | boot
mount-ro | shutdown
urandom | boot
localmount | boot
vixie-cron | default
dmesg | sysinit
keymaps | boot
local | nonetwork default
syslog-ng | default
dbus | boot
netmount | default
udev-postmount | default
root | boot
devfs | sysinit
udev | sysinit
fsck | boot
net.lo | boot
Edited to replace WPA_PSK with WPA-PSKctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
update_config=1
network={
mode=0
ssid="adramalech"
psk="XXXXXXXX"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
priority=5
}

Code: Select all
no configuration specified; defaulting to DHCP
dhcp....
running dhclient...
Code: Select all
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.
* start-stop-daemon: failed to start '/usr/sbin/spa_supplicant [ !! ]
* ERROR: net.wlan0 failed to start
Check your menuconfig matches:modules_wlan0="wpa_supplicant"
modules_wlan0="dhcpcd"
wpa_supplicant_wlan0="-Dwext"
dhcp_wlan0="-t 1" # Timeout after 10 seconds
if not recommend change and recompile.[*] Networking support --->
--- Networking support
Networking options --->
[ ] Amateur Radio support --->
< > CAN bus subsystem support --->
< > IrDA (infrared) subsystem support --->
< > Bluetooth subsystem support --->
< > RxRPC session sockets
--- Wireless
<*> cfg80211 - wireless configuration API
[ ] nl80211 testmode command
[ ] enable developer warnings
[ ] cfg80211 regulatory debugging
[*] enable powersave by default
[ ] cfg80211 DebugFS entries
[*] cfg80211 wireless extensions compatibility
[*] Wireless extensions sysfs files
<*> Common routines for IEEE802.11 drivers
[*] lib80211 debugging messages
<*> Generic IEEE 802.11 Networking Stack (mac80211)
Default rate control algorithm (Minstrel) --->
[ ] Enable mac80211 mesh networking (pre-802.11s) support
[*] Enable LED triggers
[ ] Export mac80211 internals in DebugFS
[ ] Select mac80211 debugging features --->
< > WiMAX Wireless Broadband support --->
< > RF switch subsystem support --->
< > Plan 9 Resource Sharing Support (9P2000) (Experimental) --->


Code: Select all
emerge -uND world
emerge wpa_supplicant

oh btw stupd rc will run dhcp on eth0 before it gets to wlan0
Code: Select all
emerge ifplugdbear in mind that you are using the testing branch-the xorg-server-1.8.0 shift to udev from hal is in the guide..i really wish that gentoo would come out with newer guides and linux come out with newer ways to deal with deprecation....like xorg-server not using hal after 1.8.2..
would cause use of a good public nameserverdns_servers_eth0="4.2.2.6"
dns_servers_wlan0="4.2.2.6"
would prevent overwriting /etc/resolv.conf with info from the dhcp server (router)dhcp_eth0="nodns"
dhcp_wlan0="nodns"
in response to /etc/init.d/net.wlan0 restart??* Bringing up interface wlan0
* Caching network module dependencies
* Starting wpa_supplicant on wlan0 ...
Line 5: unknown global field 'network{'.
Line 5: Invalid configuration line 'network{'.
Line 6: unknown global field 'ssid="adramalech"'.
Line 6: Invalid configuration line 'ssid="adramalech"'.
Line 7: unknown global field 'proto=WPA2'.
Line 7: Invalid configuration line 'proto=WPA2'.
Line 8: unknown global field 'key_mgmt=WPA_PSK'.
Line 8: Invalid configuration line 'key_mgmt=WPA_PSK'.
Line 9: unknown global field 'pairwise=CCMP TKIP'.
Line 9: Invalid configuration line 'pairwise=CCMP TKIP'.
Line 10: unknown global field 'psk="ZEro((!@34"'.
Line 10: Invalid configuration line 'psk="ZEro((!@34"'.
Line 11: unknown global field 'priority=5'.
Line 11: Invalid configuration line 'priority=5'.
Line 12: unknown global field '}'.
Line 12: Invalid configuration line '}'.
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.
* start-stop-daemon: failed to start `/usr/sbin/wpa_supplicant' [ !! ]
* ERROR: net.wlan0 failed to start

When I usenetwork={
ornetwork{
ornetwork {
I generate:network=
So the recognizable global command is/etc/init.d/net.wlan0 restart
* Stopping apache2 ... [ ok ]
* Stopping MythTV Backend ... [ ok ]
* Unmounting network filesystems ... [ ok ]
* Stopping ntpd ... [ ok ]
* samba -> stop: smbd ... [ ok ]
* samba -> stop: nmbd ... [ ok ]
* Stopping sshd ... [ ok ]
* Stopping named ... [ ok ]
* Stopping wlan0
* Bringing down wlan0
* Shutting down wlan0 ... [ ok ]
* Stopping wpa_cli on wlan0 ... [ ok ]
* Stopping wpa_supplicant on wlan0 ... [ ok ]
* Starting wlan0
* Starting wpa_supplicant on wlan0 ...
Line 5: unknown global field 'network{'. or Line 5: unknown global field 'network {'. or Line 5: unknown global field 'network='.
Line 5: Invalid configuration line 'network{'.
Line 6: unknown global field 'mode=0'.
Line 6: Invalid configuration line 'mode=0'.
Line 7: unknown global field 'ssid="Wireless-11n-Router"'.
Line 7: Invalid configuration line 'ssid="Wireless-11n-Router"'.
Line 8: unknown global field 'psk="01234567"'.
Line 8: Invalid configuration line 'psk="01234567"'.
Line 9: unknown global field 'proto=RSN'.
Line 9: Invalid configuration line 'proto=RSN'.
Line 10: unknown global field 'key_mgmt=WPA-PSK'.
Line 10: Invalid configuration line 'key_mgmt=WPA-PSK'.
Line 11: unknown global field 'pairwise=TKIP'.
Line 11: Invalid configuration line 'pairwise=TKIP'.
Line 12: unknown global field '}'.
Line 12: Invalid configuration line '}'.
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplican [ !! ]
and must be spelled exactly correctly.network={

Code: Select all
adramalech@tux /etc/wpa_supplicant $ sudo /etc/init.d/net.wlan0 restart
* Bringing up interface wlan0
* Starting wpa_supplicant on wlan0 ...
Line 9: invalid key_mgmt 'WPA_PSK'
Line 9: no key_mgmt values configured.
Line 9: failed to parse key_mgmt 'WPA_PSK'.
Line 13: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.
* start-stop-daemon: failed to start `/usr/sbin/wpa_supplicant' [ !! ]
* ERROR: net.wlan0 failed to start

Code: Select all
Could not look up internet address for tux. This will prevent Xfce from operating correctly. It may be possible to correct the problem by adding tux to the file /etc/hosts on your system.
Code: Select all
network={
ssid="SacLinkSecure"
proto=WPA2
key_mgmt=WPA-EAP
pairwise=CCMP
group=CCMP
eap=PEAP
identity="XXXXX"
password="XXXXXXXX"
}
Code: Select all
*Bringing up interface wlan0
* Starting wpa_supplicant on wlan0 ...
ioctl[IEEE80211_IOCTL_SETPARM]: Operation not supported
Failed to initialized driver interface
* start-stop-daemon: failed to start '/usr/sbin/wpa_supplicant' [ !! ]
* ERROR: net.wlan0 failed to start
Code: Select all
wpa-gui