agb dec9bb17d6 [packages] utils/pcmciautils: mark initscripts executable
git-svn-id: svn://svn.openwrt.org/openwrt/packages@13122 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-04 09:43:03 +00:00

20 lines
396 B
Bash
Executable File

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