diff options
author | Linus Walleij <triad@df.lth.se> | 2007-09-01 18:58:50 +0000 |
---|---|---|
committer | Linus Walleij <triad@df.lth.se> | 2007-09-01 18:58:50 +0000 |
commit | 54176364172fd0051bb2724534830cf59e11aa63 (patch) | |
tree | b0ca1e1355b6105640344ec7a8e4101f3361312c /hotplug.sh.in | |
parent | cd1e84002b89cd6e1b074884a574eb647c289177 (diff) | |
download | libmtp-54176364172fd0051bb2724534830cf59e11aa63.tar.gz |
Check for root user
Diffstat (limited to 'hotplug.sh.in')
-rwxr-xr-x | hotplug.sh.in | 4 |
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. |