Script Asking For Root Rights (Installer)


GernotFrisch

Member
Joined
Jan 2, 2007
Messages
445
Hi,

I want to make a .sh script that uses (zenity?) to ask the user for the sudo password and then performs "opkg install xxx".

Can you please assist?

Thank you.
 
The graphical equivalent for sudo is "gksu" (or "gksudo", I think they're about the same thing). It should be installed already. Just use gksu anywhere you would have otherwise used sudo.
 
Back
Top