#! /bin/sh # # drivers # # Initialize and shutdown IrDA device drivers. # # This script should be invoked with two arguments. The first is the # action to be taken, either "start", "stop", or "restart". # action=$1 device=$2 case "${action:?}" in 'start') irattach /dev/ttyS2 # The third serial port is an IrDA port ;; 'stop') killall irattach # ... or something. Currently not used ;; 'restart') /sbin/ifconfig ${device:?} down up ;; esac