Hello,
I use Slitaz on an ancient notebook with an USB WiFi dongle connected to a USB-1 port. The initialization of the WiFi dongle (modprobe ...) during boot is too slow and the network.sh tries to initialize the wlan0 interface (ifconfig ...) and starts wpa_supplicant before the interface is up. As a result the initialization fails and WiFi does not work. Running network.sh manually after the boot has completed is successful.
I've created the following enhancement to the /etc/init.d/network.sh:
...
wifi() {
if [ "$WIFI" = "yes" ] || fgrep -q "wifi" /proc/cmdline; then
# start: Patch for slow interace creation
ii=1
while [ $ii -le 20 ] && ! fgrep -q "$WIFI_INTERFACE" /proc/net/dev; do
ii='expr $ii + 1'
sleep 1
echo -n "."
done
# end of patch
ifconfig $INTERFACE down
...
The patch waits for normally 1 or 2 seconds until the interface wlan0 is fully created and then initializes and starts the WiFi connection.
This has fixed my problem, but everytime when network.sh is updated, I need to reinsert my little patch.
I'm wondering if anyone else has experienced this behaviour and knows a better solution?
little edit: backticks in the code mess up the markup, hence I removed them and replaced them with normal ticks (')