From 5b3e8e8d83c173d758c018db3441ded7fe81de58 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 12 Feb 2003 04:12:23 +0000 Subject: [PATCH] Now that we don't have the NODEVFS case, we can just check to see if a device node exists directly to see if OLDCARD is compiled into the kernel. This eliminates the scary warning that people using NEWCARD are seeing when they have pccard_enable=YES in their /etc/rc.conf files. --- etc/rc.d/pccard | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etc/rc.d/pccard b/etc/rc.d/pccard index f0cc1f021372..645ee145fe43 100644 --- a/etc/rc.d/pccard +++ b/etc/rc.d/pccard @@ -39,6 +39,9 @@ stop_cmd=":" pccard_start() { + if [ ! -c /dev/card0 ]; then + exit 0 + fi if checkyesno pccard_enable; then echo -n 'Setup PC-CARD:'