vbladed 397 B

123456789101112131415
  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.
  8. if [ -z "$*" ]
  9. then
  10. echo "usage: ./vblade <shelf> <slot> <ethn> <device>" >&2
  11. exit 1
  12. fi
  13. sh -c "`dirname $0`/vblade $* < /dev/null 2>&1 | logger -t vbladed" &