File: vbladed

package info (click to toggle)
vblade 25-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 348 kB
  • sloc: ansic: 1,310; sh: 643; makefile: 54
file content (16 lines) | stat: -rwxr-xr-x 469 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /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.  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" &