Reply
Thread Tools
santiago's Avatar
Posts: 518 | Thanked: 334 times | Joined on Mar 2010 @ italy
#1
hi guys, i forgot how to add in a post inst file root commands, can you help me ?

during the installation test it says "warning root isnt in the sudoers file"..

Code:
#!/bin/sh
if [ -x /usr/bin/root ]; then
  exec root ./usr/bin/fixup.sh && sleep 10 sudo dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Rebooting"
exit
fi
sudo reboot
can u help me please ??

***sure i can echo the root to the sudoers file, but i want the it goes like a root automatically

Last edited by santiago; 2011-04-20 at 23:52.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 19:37.