#! /bin/sh
# run a vblade daemon using a logger process
# 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.
if [ -z "$*" ]
then
    echo "usage: ./vblade <shelf> <slot> <ethn> <device>" >&2
    exit 1
fi

sh -c "`dirname $0`/vblade $* < /dev/null 2>&1 | logger -t vbladed" &
