I thought so too.
But after I compared it with pietsnot version I noticed that they are pretty the same, except the two lines:
/usr/bin/uaputl sys_cfg_ssid $SSID
/usr/bin/uaputl bss_start
If you read the AP-Mode comment you'll see it'll be removed by rm -f, maybe guru plug boots automatically into this mode.
Also you can see the mod loading and configuration is uncommented:
#insmod /root/uap8xxx.ko
#ifconfig uap0 192.168.1.1 up
what they didn't do is uncommenting the two lines from the top code quote, I think it's not neccessarily relevant for wlan.
Maybe for bluetooth which will be activated with this script from globalscale, as you can see
/etc/init.d/bluetooth start
Of course you could say it's not neccessary to activate IP-Routing and DNS (Line 13 - 18) if you disabled wlan, but maybe some people need that function, using the guruplug as a highspeed router (like me).
For conclusion:
wlan disabling: uncomment Line 9, 10 they seem relevant, guess removing the wlan mode isn't important
bluetooth disabling: uncomment Line 23 or stop the bluetooth module
iptables: Line 13 - 15, 18
dhcp, dns: Line 16 and 17
activate routing: Line 15
I think Line 7 SSID is gathering the hardware informations which are neccessary to pass through to the modules.
If you want to disable bluetooth as well I think it's easier to use /etc/init.d/bluetooth stop instead, this way will allow you to put it off without rebooting.
The wlan module is integrated into the kernel (.ko driver). Am I right? That's why you need to reboot. But I think it should be possible to compile the kernel with an extern wlan module like bluetooth. I can't say that for sure, because I don't know the hardware in this case.
Maybe somebody in this forum knows more about this stuff.That's what I undestand from the script (first impression).
I guess I'll try it next week, when my guru arrives and if it's not working I'll pass the information through, from further discussions between globalscale and me about this topic.
[Edit]
Globalscales respond to the question if it's possible to compile the kernel by pulling out wlan mod and using command mode:
GTI> Sorry, wlan does not support command mode to start/stop at present. It will keep working while starting wlan module. The one way is to kill the process of wlan if you want to disable it which is very dangerous (not recommended). => The only save way is by rebooting the whole system and not loading the module into the kernel at the beginning