Kodi Community Forum

Full Version: [Linux] / [Dharma] Wireless Startup Help / Success :)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
after messing with rc.local scripts and not getting the desired effect, i figured out a way for xbmc to fire off, and have access to WIRELESS network resources every time on boot!

hold shift while booting into dharma, run the recovery console, edit the /usr/bin/runXBMC file in nano

nano /usr/bin/runXBMC

append the following to the top of the file:
ifconfig wlan0 down
sleep 5
dhclient -r wlan0
sleep 5
ifconfig wlan0 up
sleep 5
iwconfig wlan0 essid "homenet"
sleep 5
iwconfig wlan0 mode Managed
sleep 5
dhclient wlan0
sleep 30

after that, you will have an additional 1 minute of boot time, but xbmc should boot with network resources every single boot thereafter!!

this is obviously for a very basic wireless network, but you can improvise for your own.

the issue i was having was in regards to rc.local firing off after XBMC had already started, and i wasnt able to access shares.

this resolved that issue.

just wanted to post this incase someone else out there needed it.

-scribe