X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=sbin%2Fgrml-vpnc-tugraz;h=0fc6bf3e0ebe222f8db9e62c0d7166e7f2d987ce;hb=bc56d430ed4f7eb77355cd3db871d7a7078d051b;hp=de349776842e3c8174f909502bb5cd62f15685a9;hpb=af7a30a5e458a4a8d46bd03aed355051b8147972;p=grml-network.git diff --git a/sbin/grml-vpnc-tugraz b/sbin/grml-vpnc-tugraz index de34977..0fc6bf3 100755 --- a/sbin/grml-vpnc-tugraz +++ b/sbin/grml-vpnc-tugraz @@ -1,10 +1,9 @@ -#!/bin/sh +#!/bin/bash # Filename: grml-vpnc-tugraz # Purpose: connect via vpnc in VC-Graz/TU Graz (www.vc-graz.ac.at / www.tugraz.at) # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Sam Jän 26 00:12:37 CET 2008 [mika] ################################################################################ # Documentation: @@ -13,12 +12,12 @@ export LANG=C export LC_ALL=C -if [ "$UID" != 0 ]; then +if [ $(id -ru) -ne 0 ] ; then sudo $0 exit fi -function typeofservice() { +typeofservice() { NETWORK=$(dialog --stdout --clear --title "foobar" --menu \ "This script is a submenu of grml-network to set up an internet connection