florian 73c9827f48 Add pcmciautils, thanks sn9
git-svn-id: svn://svn.openwrt.org/openwrt/packages@13113 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-03 21:38:32 +00:00

20 lines
396 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2008 OpenWrt.org
START=41
start() {
if [ -d /sys/class/pcmcia_socket/ ]; then
# 2.6 kernels
cd /sys/class/pcmcia_socket/
for PCMCIA_SOCKET in *; do
if [ $PCMCIA_SOCKET == \* ]; then
continue;
fi;
SOCKET_NO=$(echo $PCMCIA_SOCKET | cut -b14-)
ACTION=add
export SOCKET_NO ACTION
/sbin/hotplug-call pcmcia_socket
done;
fi;
}