@mojo
Hi Richard,
I'm the author of that ill-fated commit you a point here at the forum several times :)
Can you debug, why it stopped to work for you?
I'm now downloaded the latest slitaz-rolling.iso (160306), boot Core. Edit /etc/network.conf
using:
nano -w /etc/network.conf
The diff:
--- a/etc/network.conf
+++ b/etc/network.conf
@@ -41,7 +41,7 @@
#
# Enable/disable wireless connection at boot time.
-WIFI="no"
+WIFI="yes"
# Set "yes" if you don't want to store networks you're already connected.
WIFI_BLANK_NETWORKS=""
@@ -74,17 +74,17 @@
#
# SSID (network name)
-WIFI_ESSID="any"
+WIFI_ESSID="Neo"
# BSSID (optional), use this block to associate with the AP
WIFI_BSSID=""
# Wi-Fi security. Empty ("") for open network; "ANY" for trying many methods;
# "WEP" for WEP; "WPA" for WPA/WPA2-PSK; "EAP" for 802.1x EAP.
-WIFI_KEY_TYPE="any"
+WIFI_KEY_TYPE="WPA"
# Password for WEP, WPA, EAP, WAPI, and ANY; both in ASCII or HEX form.
-WIFI_KEY=""
+WIFI_KEY="my-password-here"
# Method for EAP: "PEAP", "TLS", "TTLS", "PWD".
WIFI_EAP_METHOD=""
(Background: I have ADSL-Wi-Fi router where I can setup up to 4 APs. For a long time I use my AP called "Neo" that is WPA2-secured and hidden.)
Then:
tux@slitaz:~$ su
Password:
root@slitaz:/home/tux# /etc/network
network.conf networks
root@slitaz:/home/tux# /etc/init.d/network.sh stop
Loading network settings from /etc/network.conf
Stopping all interfaces
Killing all daemons
Shutting down Wi-Fi card
root@slitaz:/home/tux# /etc/init.d/network.sh start
Loading network settings from /etc/network.conf
Configuring Wi-Fi interface wlan0... [ Done ]
Append existing /etc/wpa/wpa.conf
Starting wpa_supplicant for WPA/WPA2-PSK...
Successfully initialized wpa_supplicant
Starting udhcpc client on: wlan0...
Selected interface 'wlan0'
Connecting to Neo... [ Done ]
root@slitaz:/home/tux#
All works. And I wrote now from Midori from this Live CD.
Later I'll try to setup both Open / WEP / WPA / WPA2 secured APs, and try to configure it using wifi-box
. Stay tuned :)
________
Setup Open AP. Reboot Live CD from scratch. Edit /etc/network.conf
using nano
. The diff:
--- a/etc/network.conf
+++ b/etc/network.conf
@@ -41,7 +41,7 @@
#
# Enable/disable wireless connection at boot time.
-WIFI="no"
+WIFI="yes"
# Set "yes" if you don't want to store networks you're already connected.
WIFI_BLANK_NETWORKS=""
@@ -74,14 +74,14 @@
#
# SSID (network name)
-WIFI_ESSID="any"
+WIFI_ESSID="Test-open"
# BSSID (optional), use this block to associate with the AP
WIFI_BSSID=""
# Wi-Fi security. Empty ("") for open network; "ANY" for trying many methods;
# "WEP" for WEP; "WPA" for WPA/WPA2-PSK; "EAP" for 802.1x EAP.
-WIFI_KEY_TYPE="any"
+WIFI_KEY_TYPE=""
# Password for WEP, WPA, EAP, WAPI, and ANY; both in ASCII or HEX form.
WIFI_KEY=""
Restart network and got:
root@slitaz:/home/tux# /etc/init.d/network.sh stop
Loading network settings from /etc/network.conf
Stopping all interfaces
Killing all daemons
Shutting down Wi-Fi card
root@slitaz:/home/tux# /etc/init.d/network.sh start
Loading network settings from /etc/network.conf
Configuring Wi-Fi interface wlan0... [ Done ]
Append existing /etc/wpa/wpa.conf
Starting udhcpc client on: wlan0...
udhcpc (v1.23.2) started
Sending discover...
Sending discover...
Sending discover...
Sending select for 192.168.1.2...
Lease of 192.168.1.2 obtained, lease time 86400
deleting routers
adding dns 192.168.1.1
adding dns 0.0.0.0
Connecting to Test-open... .....Failed to connect to non-global ctrl_ifname: (null) error: No such file or directory
[ Failed ]
Some errors I can't understand now. But network is working now, and I wrote from Live CD.
________
Now I setup WEP-secured AP, not reboot the LiveCD now, edit network.conf
, restart network:
root@slitaz:/home/tux# /etc/init.d/network.sh stop
Loading network settings from /etc/network.conf
Stopping all interfaces
Killing all daemons
Shutting down Wi-Fi card
root@slitaz:/home/tux# /etc/init.d/network.sh start
Loading network settings from /etc/network.conf
Configuring Wi-Fi interface wlan0... [ Done ]
Append existing /etc/wpa/wpa.conf
Starting wpa_supplicant for WEP...
Successfully initialized wpa_supplicant
Starting udhcpc client on: wlan0...
Selected interface 'wlan0'
Connecting to Test-WEP... [ Done ]
________
Now I use wifi-box
. Yes, it's weird that it closes and not re-appears again when you press "Start Wi-Fi" and "Stop Wi-Fi" buttons. But it's a minor bug. It works for me, and I can select my other non-hidden WPA2-secured AP using wifi-box
.
You can show errors if you run wifi-box
after you shut down your network pressing "Stop Wi-Fi" previously:
ifconfig: SIOCSIFFLAGS: Operation not possible due to RF-kill
wlan0 Interface doesn't support scanning : Network is down
But when you press "Start Wi-Fi" in the wifi-box
you'll get the Wi-Fi AP list just after the pair of seconds. Double-click the line with AP name, enter password et voila!
________
So it works for me. I apologize it not works for you. But I can't help you if you will not make a step forth. Any bug details, logs, console output, your AP settings?