#!/bin/sh
#
# serial $Revisionn$ 1995/09/15 07:25:01 (David Hinds)
#
# Initialize or shutdown a PCMCIA serial device
#
# The first argument should be either 'start' or 'stop'.  The second
# argument is the base name for the device.
#

action=$1
name=$2

case "${action:?}" in
'start')
    rm -f /dev/modem
    ln -s /dev/$2 /dev/modem
    ;;
'stop')
    fuser -k /dev/$2 /dev/modem
    rm -f /dev/modem
    ;;
esac
