Browse Source

vbladed: check for 4 or more arguments rather than exactly 4, so that -m switches are now accepted.

David Martínez Moreno 11 years ago
parent
commit
37fea4e11f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      vbladed

+ 1 - 1
vbladed

@@ -7,7 +7,7 @@
 # protect ourselves against the most common way or
 # calling vbladed: without arguments.  While at it, we guard
 # ourselves against wrong number of parameters.
-if [ $# -ne 4 ]
+if [ $# -lt 4 ]
 then
     echo "usage: ./vblade <shelf> <slot> <ethn> <device>" >&2
     exit 1