Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    * The Truly Epic Maemo 5 MODs Thread *

    Reply
    Page 15 of 240 | Prev | 5   13     14   15   16     17   25 | Next | Last
    Rob1n | # 141 | 2010-01-16, 21:23 | Report

    You could probably do "echo /sbin/reboot | sudo gainroot"

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Rob1n For This Useful Post:
    les_garten

     
    les_garten | # 142 | 2010-01-16, 21:37 | Report

    Originally Posted by Rob1n View Post
    You could probably do "echo /sbin/reboot | sudo gainroot"
    Hey thanx, I'll give that a try. Looks like it will work!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    les_garten | # 143 | 2010-01-16, 21:55 | Report

    Originally Posted by Rob1n View Post
    You could probably do "echo /sbin/reboot | sudo gainroot"
    Heh, well that one didn't work. It opens two xterms and one collapses and disappears.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    qwerty12 | # 144 | 2010-01-16, 22:03 | Report

    Originally Posted by les_garten View Post
    Mine did the same thing.

    Might be able to cobble something together with low permissions with setuid possibly. But would not want to do that though.
    sudo could probably be abused for this:

    Code:
    sudo gainroot
    echo "user ALL = NOPASSWD: /sbin/reboot" > /etc/sudoers.d/reboot.sudoers
    update-sudoers
    After that, change your reboot entry to run "sudo reboot".

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 4 Users Say Thank You to qwerty12 For This Useful Post:
    BigBadGuber!, les_garten, MohammadAG, tuminoid

     
    qwerty12 | # 145 | 2010-01-16, 22:25 | Report

    OK, scratch that: that only worked once...

    Do this, instead:

    Do the sudoers trick outlined above;

    /usr/share/dbus-1/services/reboot.service:
    Originally Posted by
    [D-BUS Service]
    Name=com.misc.reboot
    Exec=/usr/bin/sudo reboot
    /etc/systemui/systemui.xml:
    Originally Posted by
    <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>

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 4 Users Say Thank You to qwerty12 For This Useful Post:
    les_garten, MohammadAG, vkv.raju

     
    les_garten | # 146 | 2010-01-16, 22:27 | Report

    Originally Posted by qwerty12 View Post
    sudo could probably be abused for this:

    Code:
    sudo gainroot
    echo "user ALL = NOPASSWD: /sbin/reboot" > /etc/sudoers.d/reboot.sudoers
    update-sudoers
    After that, change your reboot entry to run "sudo reboot".
    Same thing, opens two Xterms and leaves one while the other melts away.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    qwerty12 | # 147 | 2010-01-16, 22:29 | Report

    Yep, I had it work once but then it started to do what you said. See my second method that abuses D-Bus - that worked more than once.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to qwerty12 For This Useful Post:
    les_garten

     
    les_garten | # 148 | 2010-01-16, 22:40 | Report

    Originally Posted by qwerty12 View Post
    Yep, I had it work once but then it started to do what you said. See my second method that abuses D-Bus - that worked more than once.
    That worked, interesting, thanx!

    Why is the Reboot using osso-powerup-shutdown so "abrupt". Both these methods work but the osso command juist seems "Violent" in it's nature!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Schturman | # 149 | 2010-01-16, 22:44 | Report

    Maybe someone know how I can get the button or shortcut icon for a simple bluetooth ON/OFF action ?
    I need this for a quickly on/off bluetooth.
    Thanks

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Schturman For This Useful Post:
    les_garten

     
    les_garten | # 150 | 2010-01-16, 22:52 | Report

    Originally Posted by qwerty12 View Post
    Yep, I had it work once but then it started to do what you said. See my second method that abuses D-Bus - that worked more than once.
    How do you hup that menu with out a reboot?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 15 of 240 | Prev | 5   13     14   15   16     17   25 | Next | Last
vBulletin® Version 3.8.8
Normal Logout