projects
/
grml-network.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix bashism/non-POSIX usage of $UID.
[grml-network.git]
/
sbin
/
grml-vnet
diff --git
a/sbin/grml-vnet
b/sbin/grml-vnet
index
82aca72
..
7fa0d95
100755
(executable)
--- a/
sbin/grml-vnet
+++ b/
sbin/grml-vnet
@@
-16,6
+16,9
@@
OPT_GROUP_=''
OPT_BRIDGE_=''
OPT_AUTO_='false'
+if [ $(id -ru) -ne 0 ] ; then
+ echo 1>&2 "Error: please run this script with uid 0 (root)." ; exit 1
+fi
function printUsage()
{