#!/bin/sh

test -r /etc/pcmcia/apm.opts || exit 0
. /etc/pcmcia/apm.opts

case "$APM" in
suspend)
	# May be necessary to prevent system freeze if pcmcia network
	# card is in.
	#/sbin/ifconfig eth0 down # prevent "card busy"
	/sbin/cardctl suspend
    	;;
eject)
	# May be necessary to prevent system freeze if pcmcia network
	# card is in.
	#/sbin/ifconfig eth0 down # prevent "card busy"
	/sbin/cardctl eject
    	;;
esac
