View Single Post
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#193
Originally Posted by fred123 View Post
two files in debian control

postinst & postrm
Code:
#!/bin/sh

#update sudoers

update-sudoers
create the following file

etc/sudoers.d/healthcheck.sudoers
Code:
user ALL = NOPASSWD: /<path>/command
put all the commands you need to run as root.

this will allow commands to be run as root when your package is installed, and stopped when package is removed.


wow thank you!!!!
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -