projects
/
grml-scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
notifyd: call aplay using subprocess.Popen + replace os.system with subprocess.call
[grml-scripts.git]
/
usr_sbin
/
blacklist
diff --git
a/usr_sbin/blacklist
b/usr_sbin/blacklist
index
03b624d
..
8446a41
100755
(executable)
--- a/
usr_sbin/blacklist
+++ b/
usr_sbin/blacklist
@@
-10,15
+10,15
@@
PN="$(basename $0)"
[ -n "$MODPROBEFILE" ] || MODPROBEFILE=/etc/modprobe.d/grml.conf
[ -r /etc/grml/lsb-functions ] && . /etc/grml/lsb-functions
[ -n "$MODPROBEFILE" ] || MODPROBEFILE=/etc/modprobe.d/grml.conf
[ -r /etc/grml/lsb-functions ] && . /etc/grml/lsb-functions
-if [ -z "$1" ] ; then
+if [ -z "$1" ]
|| [ "$1" = "-h" ] || [ "$1" = "--help" ]
; then
echo "Usage: $PN <module>"
echo "$PN (un)blacklists module via $MODPROBEFILE"
exit 1
fi
if [ "$(id -ru)" != "0" ] ; then
echo "Usage: $PN <module>"
echo "$PN (un)blacklists module via $MODPROBEFILE"
exit 1
fi
if [ "$(id -ru)" != "0" ] ; then
-
echo Error: become root before starting $0 >& 2
-
exit 100
+ echo Error: become root before starting $0 >& 2
+ exit 100
fi
[ -f "$MODPROBEFILE" ] || touch "$MODPROBEFILE"
fi
[ -f "$MODPROBEFILE" ] || touch "$MODPROBEFILE"