#!/bin/sh

# If we're just upgrading, don't ask anything
case "$1" in
    configure)
        if [ "$2" == "" ]; then
            echo "\
Now, to invoke a command with administrative priviledges, open a terminal
and run 'sudo <command>' then, when prompted, enter the password you
just set up. 'sudo' is smart enough to not ask you the password again
for some time in the same session.

To get into a root login shell, enter 'rush' inside a terminal 
" >/tmp/_sudser_
            maemo-confirm-text "Please note" /tmp/_sudser_
        fi
        ;;
esac

echo "user ALL=(ALL) NOPASSWD: ALL" >/etc/sudoers.d/everybody.sudoers

/usr/sbin/update-sudoers
