#!/bin/sh

# If we're just upgrading, don't ask anything
case "$1" in
    configure)
        if echo "$2" | egrep -q '(^0\.1|^$)'; then
            # By default set to no password
            SUDO_USER=user /usr/bin/sudser-worker ""
            echo "\
Now, to invoke a command with administrative priviledges, open a terminal
and run 'sudo <command>', or just 'rush' to get a root shell.

If you would like to set up a more secure configuration, open a terminal
and invoke the 'sudser' command. It will ask you for a password, and then
it will allow access only to root shell, and only after you enter the
user password.
" > /tmp/_sudser_
        fi
        ;;
esac

if [ -r /tmp/_sudser_ ]; then
    maemo-confirm-text "Please note" /tmp/_sudser_
    rm -f /tmp/_sudser_
fi

#DEBHELPER#
