I want an app to re-start (XBMC, but I failed with Firefox and Krusader doing this, too), after the PC wakes from suspend or hibernate. I want to write a script, which runs at the same conditions, and checks the network I am connected to, and execute.( mount my NFS)
I tried with
sudo touch /etc/pm/sleep.d/99_RestartXBMC sudo chmod a+x /etc/pm/sleep.d/99_RestartXBMC sudo nano /etc/pm/sleep.d/99_RestartXBMC
#!/bin/bash case "$1" in thaw) killall -9 xbmc.bin ;; sleep 5 ;; /usr/bin/xbmc ;; *) ;; esac exit $?
But XBMC will not start ( Firefox and Krusader, too)
So, I want to define an upstart script, that will execute after system resume (from hibernate or sleep) I want to be something like
start on xxxxx (xxx should be start from hibernate or sleep)
Dont if it is possible to make something like that, anf if so how to define correctly the xxxxx condition
start on system resume ???? start on system thaw ???