mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 04:48:00 +01:00
Removed autostarting daemon code so that script execution would work properly. Added channel display support for cards that only get frequency info in 'iwlist scan'. Changed autoconnect behavior to fix a bug where dbus would crash if connecting was taking too long. Changed/added some comments.
14 lines
312 B
Python
Executable File
14 lines
312 B
Python
Executable File
#!/usr/bin/python
|
|
##
|
|
#Simple script that converts command line args to a string and executes it in usermode
|
|
##
|
|
import os,sys,misc
|
|
|
|
print 'executing script in user mode'
|
|
os.setuid(1000)
|
|
command = ''
|
|
for stuff in sys.argv[1:]:
|
|
command = command + ' ' + stuff
|
|
print 'command = ',command
|
|
print misc.Run(command)
|