Improve check4root.
[grml-debootstrap.git] / grml-debootstrap
index fe1b22b..fb8562c 100755 (executable)
@@ -91,7 +91,6 @@ fi
 
 # make sure we have what we need {{{
 check4progs debootstrap dialog || exit 1
-check4root || exit 1
 # }}}
 
 # source main configuration file {{{
@@ -166,6 +165,13 @@ fi
 }
 # }}}
 
+# check for root permissions {{{
+if ! check4root ; then
+   echo "For usage instructions please execute '$PN --help'."
+   exit 1
+fi
+# }}}
+
 # source specified configuration file {{{
 if [ -n "$CONFIGFILE" ] ; then
    einfo "Reading specified config file $CONFIGFILE."