You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
396 B

#!/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;
}