summaryrefslogtreecommitdiff
blob: 5822d677843a8aebf48771cde5091d8fff059946 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
#
# 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: vbladed <shelf> <slot> <ethn> <device>" >&2
    exit 1
fi

[ -z "${LOGTAG}" ] && LOGTAG=vbladed

/usr/sbin/vblade "${@}" </dev/null 2>&1 | /usr/bin/logger -t "${LOGTAG}"