summaryrefslogtreecommitdiff
path: root/hotplug.sh.in
diff options
context:
space:
mode:
authorLinus Walleij <triad@df.lth.se>2007-09-01 18:58:50 +0000
committerLinus Walleij <triad@df.lth.se>2007-09-01 18:58:50 +0000
commit54176364172fd0051bb2724534830cf59e11aa63 (patch)
treeb0ca1e1355b6105640344ec7a8e4101f3361312c /hotplug.sh.in
parentcd1e84002b89cd6e1b074884a574eb647c289177 (diff)
downloadlibmtp-54176364172fd0051bb2724534830cf59e11aa63.tar.gz
Check for root user
Diffstat (limited to 'hotplug.sh.in')
-rwxr-xr-xhotplug.sh.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/hotplug.sh.in b/hotplug.sh.in
index d815ff2..58f52a6 100755
--- a/hotplug.sh.in
+++ b/hotplug.sh.in
@@ -114,6 +114,10 @@ then
echo "Missing awk program. Fatal error."
exit 1
fi
+if [ "x${USER}" != "xroot" ];
+ echo "WARNING: this program should be run as root!"
+fi
+
# This script locates the hotplug distribution on a certain host
# and sets up userland hotplugging scripts according to rules.