The /etc/rc.local script is the last script called when booting. And this script calls the /root/init_setup.sh, which then loads the uap8xxx.ko kernel module that is located in /root. I.e. it's not located where it should be (somewhere in /lib/<kernel-version>/.... So it might be that the modprobe call in ifup fails because it cannot find the module. And this (/etc/init.d/network) is called earlier than the init_setup.sh. But you'd login after that and hence would see a loaded uap8xxx.ko.
You could copy the module to the right location (I think you need to call "depmod -a" after this to build up some index or so).
I already copied uap8xxx.ko to /lib/modules/... and called depmod. I also removed the init_setup.sh from rc.local so this isn't it. (I should have mentioned it earlier.)
The you could set VERBOSE=yes in /etc/default/rcS and watch the serial console while booting. You should see ifup being called.
I did this. I also modified /etc/init.d/networking to call ifup with the --verbose option, but still I can't find any errors. Here an excerpt from my boot messages:
Setting up networking....
Configuring network interfaces...Configuring interface lo=lo (inet)run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
ifconfig lo 127.0.0.1 up
run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/mountnfs
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/openssh-serverConfiguring interface uap0=uap0 (inet)
modprobe uap8xxx
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
ifconfig uap0 192.168.37.1 netmask 255.255.255.0 up
/etc/network/guruplug-wl-conf.sh start
+ uaputl sys_cfg_radio_ctl 0
Radio setting successful
+ uaputl sys_cfg_channel 0 1
Channel setting successful
+ uaputl sys_cfg_ssid Guru
SSID setting successful
+ uaputl sys_cfg_protocol 32
protocol setting successful
+ uaputl sys_cfg_cipher 8 8
cipher setting successful
+ uaputl sys_cfg_wpa_passphrase 'topsecret'
WPA passphrase setting successful
+ uaputl bss_start
BSS started!
+ echo 1
++ eval ls /sys/class/leds/plug2l:green:wmode/brightness
+++ ls /sys/class/leds/plug2l:green:wmode/brightness
+ set +x
run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/mountnfs
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/openssh-server
done.
Starting portmap daemon....
NET: Registered protocol family 10
ADDRCONF(NETDEV_UP): uap0: link is not ready
Setting console screen modes and fonts.
cannot (un)set powersave mode
Setting up ALSA...done (none loaded).
Initializing random number generator...done.
Setting up X server socket directory /tmp/.X11-unix....
Setting up ICE socket directory /tmp/.ICE-unix....
INIT: Entering runlevel: 2
Interesting might be the line "ADDRCONF(NETDEV_UP): uap0: link is not ready", but I get this message even if I issue "ifup uap0" after the boot completed. And then the WLAN AP shows up. I get the message "ADDRCONF(NETDEV_CHANGE): uap0: link becomes ready" as soon as another computer establishes a connection with the AP.