X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=sbin%2Fgrml-autoconfig;h=03ad90527f567be3f13fef24e0977ed17534dd80;hp=9806ac317f0bd6e1f4e63b59fea674e7eed22794;hb=2153d1e36c5834064f9c0b2455e2d601eef1762d;hpb=fe832802ff2bdd52be8a783a243cf6ba2e93610a diff --git a/sbin/grml-autoconfig b/sbin/grml-autoconfig index 9806ac3..03ad905 100755 --- a/sbin/grml-autoconfig +++ b/sbin/grml-autoconfig @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Filename: grml-autoconfig # Purpose: configuration interface for grml-autoconfig # Authors: grml-team (grml.org), (c) Michael Prokop @@ -6,7 +6,7 @@ # License: This file is licensed under the GPL v2. ################################################################################ -if [ "$UID" != 0 ]; then +if [ $(id -u) != 0 ] ; then echo "Error: please run this script with uid 0 (root)." ; exit 1 fi