123456789101112131415161718192021 |
- 03_vblade_usage.patch: Used for avoiding calling vbladed without arguments,
- and while at it, add the usage command line.
- Index: vblade-20/vbladed
- ===================================================================
- --- vblade-20.orig/vbladed
- +++ vblade-20/vbladed
- @@ -3,4 +3,14 @@
- # output is directed to syslogd
- #
-
- +# Although logging goes to syslog, let's going to
- +# protect ourselves against the most common way or
- +# calling vbladed: without arguments. While at it, we guard
- +# ourselves against wrong number of parameters.
- +if [ $# -lt 4 ]
- +then
- + echo "usage: ./vblade <shelf> <slot> <ethn> <device>" >&2
- + exit 1
- +fi
- +
- sh -c "`dirname $0`/vblade $* < /dev/null 2>&1 | logger -t vbladed" &
|