Add debian/control headers Origin, Bugs
[grml-network.git] / sbin / grml-network
index 4ba90d9..46393a6 100755 (executable)
@@ -4,15 +4,13 @@
 # Authors:       (c) Klaus Knopper Mar 2004, (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
-# Latest change: Mit Okt 04 11:52:41 CEST 2006 [mika]
 ################################################################################
 
 PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin"
 export PATH
 
-if [ $UID != 0 ] ; then
-   echo Error: become root before starting $0 >& 2
-   exit 100
+if [ $(id -ru) -ne 0 ] ; then
+  echo 1>&2 "Error: please run this script with uid 0 (root)." ; exit 1
 fi
 
 # XDIALOG_HIGH_DIALOG_COMPAT=1
@@ -110,7 +108,7 @@ case "$LANGUAGE" in
   de*|at*|ch*)
     TITLE1="Netzwerk-Setup"
     STATUS="Status: $STATUS"
-    MESSAGE1="Bitte auswรคhlen:"
+    MESSAGE1="Bitte auswaehlen:"
     MODEMSETUP="/dev/modem-Schnittstelle (neu) konfigurieren"
     NETCARD="Netzwerkkarten (LAN/WLAN) Konfiguration"
     WIRELESS="Wireless Zugang"