projects
/
grml-scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6b45f3
)
blacklist: check for -h/--help option
author
Michael Prokop
<mika@grml.org>
Wed, 5 Sep 2012 09:22:26 +0000
(11:22 +0200)
committer
Michael Prokop
<mika@grml.org>
Wed, 5 Sep 2012 09:23:10 +0000
(11:23 +0200)
usr_sbin/blacklist
patch
|
blob
|
history
diff --git
a/usr_sbin/blacklist
b/usr_sbin/blacklist
index
03b624d
..
eaf8273
100755
(executable)
--- a/
usr_sbin/blacklist
+++ b/
usr_sbin/blacklist
@@
-10,7
+10,7
@@
PN="$(basename $0)"
[ -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