pcmcia revision 7c478bd95313f5f23a4c958a745db2134aa03244
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen#!/sbin/sh
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye#
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# CDDL HEADER START
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye#
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen# The contents of this file are subject to the terms of the
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# Common Development and Distribution License, Version 1.0 only
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# (the "License"). You may not use this file except in compliance
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# with the License.
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye#
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# or http://www.opensolaris.org/os/licensing.
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# See the License for the specific language governing permissions
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# and limitations under the License.
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye#
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# When distributing Covered Code, include this CDDL HEADER in each
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# If applicable, add the following below this CDDL HEADER, with the
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# fields enclosed by brackets "[]" replaced with your own identifying
73189ea86c6fb0af01e16eaa5b0da3f2bb775c41Harry Pan# information: Portions Copyright [yyyy] [name of copyright owner]
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye#
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# CDDL HEADER END
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner#
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner#
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# Copyright (c) 1994-1998 by Sun Microsystems, Inc.
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner# All rights reserved.
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner#
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner#ident "%Z%%M% %I% %E% SMI"
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlencase "$1" in
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen'start')
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner if [ -c /dev/pem -a -f /usr/lib/pcmciad ] ; then
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner /usr/lib/pcmciad 1>/dev/msglog 2>&1 && \
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner echo 'starting PCMCIA user daemon.'
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner fi
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner ;;
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen'stop')
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen /usr/bin/pkill -x -u 0 pcmciad
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen ;;
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner*)
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner echo "Usage: $0 { start | stop }"
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen exit 1
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen ;;
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlenesac
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlenexit 0
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen