mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 04:48:00 +01:00
Changed script execution method so that scripts are always run in usermode.
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.
This commit is contained in:
13
run-script.py
Executable file
13
run-script.py
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/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)
|
||||
Reference in New Issue
Block a user