-#!/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 <mika@grml.org>
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