Need py script to restart WIFI
#1
Hi,
As my WIFI connection drops frequently, i'm trying to build a script to restart my wifi from within XBMC. I tried this script (pasted these lines in wifi.py)

#!/usr/bin/env python

from time import sleep
import os
os.system('/etc/init.d/networking stop')
sleep(10)
os.system('/etc/init.d/networking start')

But running the script does nothing (except for waiting 10 seconds until finished) pinging my xbmc-box however always gives a reply. I guess the networking restart-part isn't working. Anybody ideas?

i'm using xbmc 9.11 beta2

Thanks
Boein
Reply

Logout Mark Read Team Forum Stats Members Help
Need py script to restart WIFI0