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

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