source: packages/utils/pcmciautils/files/etc/init.d/pcmcia_socket @ 13113

Last change on this file since 13113 was 13113, checked in by florian, 7 years ago

Add pcmciautils, thanks sn9

File size: 396 bytes
Line 
1#!/bin/sh /etc/rc.common
2# Copyright (C) 2008 OpenWrt.org
3
4START=41
5start() {
6        if [ -d /sys/class/pcmcia_socket/ ]; then
7                # 2.6 kernels
8                cd /sys/class/pcmcia_socket/
9                for PCMCIA_SOCKET in *; do
10                        if [ $PCMCIA_SOCKET == \* ]; then
11                                continue;
12                        fi;
13                        SOCKET_NO=$(echo $PCMCIA_SOCKET | cut -b14-)
14                        ACTION=add
15                        export SOCKET_NO ACTION
16                        /sbin/hotplug-call pcmcia_socket
17                done;
18        fi;
19}
Note: See TracBrowser for help on using the repository browser.