View Single Post
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#4
You need to put a file "myApp.sudoers" into /etc/sudoers.d/
with a content like
user ALL = NOPASSWD: /path/to/script/scriptname
and call in postinst 'update-sudoers'.
Then you may call the script with sudo without requiring a password.

--edit
This guide is only valid for normal debian based systems. For Harmattans cripped aegisfs there needs to be obeyed a few things more ...
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature

Last edited by peterleinchen; 2013-03-23 at 10:04. Reason: aegis disclaimer
 

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