View Single Post
debernardis's Avatar
Posts: 2,142 | Thanked: 2,054 times | Joined on Dec 2006 @ Sicily
#2
Hello qole my friend,

in order to avoid fiddling with passwordless ssh, I changed the /usr/bin/debbie script as follows:

Code:
#!/bin/sh

if [ `id -u` != 0 ] ; then
#if not already root, call itself as root
        sudo gainroot <<EOF
exec $0 $*
EOF
        exit
fi

exec /home/user/MyDocs/bin/debian hilda $*
Took the code for re-executing as root elsewhere on the forums.

This seems OK BUT I haven't been able to make hildon menu items work.
If your menus do their job indeed, would you please try this modified script to see if it makes them not functional? Thanks
 

The Following User Says Thank You to debernardis For This Useful Post: