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

19 lines
372 B
Bash

#!/bin/sh
# Copyright (C) 2008 OpenWrt.org
case "$ACTION" in
add)
echo PCMCIA: socket number: $SOCKET_NO
sleep 1;
/usr/sbin/pcmcia-socket-startup $SOCKET_NO
DONE_FILE=/sys/class/pcmcia_socket/pcmcia_socket$SOCKET_NO/available_resources_setup_done
if [ -f $DONE_FILE ]; then
if [ -w $DONE_FILE ]; then
echo -n "42" > $DONE_FILE
fi;
fi;
;;
esac