Forking the bash script on two thread... I mean, launch a second .sh from the main script, with a while cycle within, then running the dbus-monitoring code line without having to wait the forked code to quit... after the program exits the second script will be killed too with a simple killall command
EDIT: don't know why but lipc-set-prop com.lab126.powerd wakeUp 1 doesn't seem to work O.o I'd better try your one
Last edited by Aeris; 10-25-2013 at 08:50 AM.
|