if test x$DISPLAY = x; then echo "The Nautilus-Installer requires X" exit fi params="DISPLAY=$DISPLAY" if test x$http_proxy = x; then params="$params" else params="$params http_proxy=$http_proxy" fi if test $UID -ne 0; then echo "" echo "Eazel Installer PR2" echo "" echo "Eazel Installer requires superuser (root) access to prepare the system" echo "and to install packages." echo "" echo "Please enter root password at the prompt." xhost + localhost su - -c "export $params && cd $PWD && echo Uncompressing... && sh $0 $* $USER" xhost - localhost exit fi