#!/bin/sh
#
# serial.sample 1.2 1995/05/25 04:27:58 (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
