summaryrefslogtreecommitdiff
path: root/dh_testroot
diff options
context:
space:
mode:
authorjoey <joey>1999-08-17 04:12:54 +0000
committerjoey <joey>1999-08-17 04:12:54 +0000
commit938b66ee19e113785e6655b1c3e73e9003e6464c (patch)
treed06bd22faa3da8940bec71ba2e34e2028b6e7764 /dh_testroot
r1: Initial revision
Diffstat (limited to 'dh_testroot')
-rwxr-xr-xdh_testroot10
1 files changed, 10 insertions, 0 deletions
diff --git a/dh_testroot b/dh_testroot
new file mode 100755
index 0000000..fcc9b47
--- /dev/null
+++ b/dh_testroot
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+#
+# Checks to make sure you are root.
+
+PATH=debian:$PATH:/usr/lib/debhelper
+source dh_lib
+
+if [ "`whoami`" != root ]; then
+ error "You must run this as root."
+fi