Fix UID check in grml-pptp-inode
[grml-network.git] / sbin / grml-pptp-inode
index 2e6e5fa..9446067 100755 (executable)
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Andreas Gredler <jimmy@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
-# Latest change: Sam Jän 26 00:12:46 CET 2008 [mika]
+# Latest change: Tue Jul 22 01:13:08 CEST 2008 [mika]
 ################################################################################
 
 ################################################################################
 
 export LANG=C
 
-if [ "$UID" != 0 ]; then
-#  sudo $0
-#  exit
-echo foo
+if [ $UID != 0 ] ; then
+   echo Error: become root before starting $0 >& 2
+   exit 100
 fi
 
 if [ -z "$FORCE_OLD" ] ; then