#! /bin/sh
#
# printer (Dag Brattli)
#
# Initialize the printer device
#
# This script should be invoked with three arguments.  The first is the
# action to be taken, either "start", "stop", or "restart".  The
# second is the network interface name. The third is the minor number
# used by the device

action=$1
device=$2
minor=$3

if [ -z ${device} ]; then
   echo "$0: No device specified"
   exit 1
fi

case "${action:?}" in
'start')
    rm -f /dev/${device}*
    mknod /dev/${device} c 10 `expr ${minor}` 
    ;;
'stop')
    rm /dev/${device}
    ;;
'restart')
    ;;
esac 
