View Single Post
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#1332
If you want with notifications, this commands i use:
When rule activates:
Code:
sh -c "dbus-send --print-reply --dest=com.meego.core.MNotificationManager /notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:'  Restarting BME !!!' string:'' string:'/usr/share/themes/blanco/meegotouch/icons/icon-m-settings-battery.png' uint32:0 && echo root | devel-su -c '/sbin/initctl stop bme && sleep 10 && /sbin/initctl start bme && sleep 30 && /sbin/initctl stop bme && sleep 30 && /sbin/initctl start bme'"
When rule deactivates:
Code:
sh -c "dbus-send --print-reply --dest=com.meego.core.MNotificationManager /notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:'  BME restarted !!!' string:'' string:'/usr/share/themes/blanco/meegotouch/icons/icon-m-settings-notification.png' uint32:0"
 

The Following 2 Users Say Thank You to Schturman For This Useful Post: