View Single Post
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#1098
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...
 

The Following 3 Users Say Thank You to thedead1440 For This Useful Post: