vbladed 469 B

12345678910111213141516
  1. #! /bin/sh
  2. # run a vblade daemon using a logger process
  3. # output is directed to syslogd
  4. #
  5. # Although logging goes to syslog, let's going to
  6. # protect ourselves against the most common way or
  7. # calling vbladed: without arguments. While at it, we guard
  8. # ourselves against wrong number of parameters.
  9. if [ $# -ne 4 ]
  10. then
  11. echo "usage: ./vblade <shelf> <slot> <ethn> <device>" >&2
  12. exit 1
  13. fi
  14. sh -c "`dirname $0`/vblade $* < /dev/null 2>&1 | logger -t vbladed" &