ajalkane, For the bme restart I've been using a dbus call to display the bme stop/start output so that I do know for sure when bme has been restarted; not sure if its of any use: Code: #!/bin/sh stop=$(/sbin/stop bme) dbus-send --print-reply --dest=com.meego.core.MNotificationManager/notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"$stop" string:'' string:'' uint32:0 sleep 10 start=$(/sbin/start bme) dbus-send --print-reply --dest=com.meego.core.MNotificationManager/notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"$start" string:'' string:'' uint32:0 I've tested more and the first sleep 10 seems not too necessary for me at least...
#!/bin/sh stop=$(/sbin/stop bme) dbus-send --print-reply --dest=com.meego.core.MNotificationManager/notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"$stop" string:'' string:'' uint32:0 sleep 10 start=$(/sbin/start bme) dbus-send --print-reply --dest=com.meego.core.MNotificationManager/notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"$start" string:'' string:'' uint32:0