|
@@ -5,8 +5,9 @@
|
|
|
|
|
|
# Although logging goes to syslog, let's going to
|
|
# Although logging goes to syslog, let's going to
|
|
# protect ourselves against the most common way or
|
|
# protect ourselves against the most common way or
|
|
-# calling vbladed: without arguments.
|
|
|
|
-if [ -z "$*" ]
|
|
|
|
|
|
+# calling vbladed: without arguments. While at it, we guard
|
|
|
|
+# ourselves against wrong number of parameters.
|
|
|
|
+if [ $# -ne 4 ]
|
|
then
|
|
then
|
|
echo "usage: ./vblade <shelf> <slot> <ethn> <device>" >&2
|
|
echo "usage: ./vblade <shelf> <slot> <ethn> <device>" >&2
|
|
exit 1
|
|
exit 1
|