View Single Post
Posts: 539 | Thanked: 518 times | Joined on May 2010 @ nanaurbusiness
#12
Originally Posted by nicolai View Post
Can you explain to me why I need an extra dbus-service for this.
Why not just uncomment the already existing reboot entry
in systemui.xml?
Like the Note said:
some of you may notice that a reboot entry is already defined in systemui.xml. However, osso-powerup-shutdown performs a shutdown which kill all apps suddenly. Rebooting with sudo reboot will gently shutdown all software and sync your filesystem, which is safer. Lets just say that there was probably a reason that the default entry was commented out.

BTW: The source is here * The Truly Epic Maemo 5 MODs Thread *
Part 1
Part 2
both posted by good old qwerty12

Or the summary by MohammadAG

Code:
sudo gainroot
echo "user ALL = NOPASSWD: /sbin/reboot" > /etc/sudoers.d/reboot.sudoers
update-sudoers
nano /usr/share/dbus-1/services/reboot.service
# Paste this into it:
[D-BUS Service]
Name=com.misc.reboot
Exec=/usr/bin/sudo reboot
# CTRL + O to save, CTRL+X to quit nano
nano /etc/systemui/systemui.xml
# Paste this into it:
<menuitem priority="750" name="Reboot">
<icon>general_refresh</icon>
<callback service="com.misc.reboot" path="/com/misc/reboot" interface="com.misc.reboot" method="reboot" bus="session" autostart="true">
<argument type="boolean">true</argument>
</callback>
</menuitem>
# CTRL + O to save, CTRL+X to quit nano
killall systemui
Cheers,

J4ZZ
 

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