Fix UID check in grml-pptp-inode
authorMichael Prokop <devnull@localhost>
Mon, 21 Jul 2008 23:14:23 +0000 (01:14 +0200)
committerMichael Prokop <devnull@localhost>
Mon, 21 Jul 2008 23:14:23 +0000 (01:14 +0200)
debian/changelog
sbin/grml-pptp-inode

index 9707136..b425263 100644 (file)
@@ -1,3 +1,9 @@
+grml-network (0.2.2) unstable; urgency=low
+
+  * Fix UID check in grml-pptp-inode.
+
+ -- Michael Prokop <mika@grml.org>  Tue, 22 Jul 2008 01:13:32 +0200
+
 grml-network (0.2.1) unstable; urgency=low
 
   * grml-bridge: remove '-e' option in dhclient call.
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