I have recently added an SD card to my Linksys AP (WRT54GL v1.1). Followed the how-to and everything went great (http://wiki.openwrt.org/OpenWrtDocs/Har … ys/WRT54GL). Thanks to those that put that together. I am able to mount and read/write the SD and also have the init scripts set up to load the mmc module and mount the card on reboot (assuming the card is plugged in of course).
Now I am trying to get hotplugging to work. I tried by creating /etc/hotplug.d/mmc/01-mmc-storage but when I insert/remove the card nothing happens. My 01-mmc-storage file is executable and currently just looks like:
echo "mmc hotplug" >> /root/LOG
I know that won't mount the thing, I am just trying to verify that I get an event, which I don't. I tried following http://wiki.openwrt.org/OpenWrtDocs/Cus … WifiToggle to set up a button hotplug event script so I created /etc/hotplug.d/button/01-radio-toggle and added a simple echo command to that script. Pressing the button does not trigger that one either.
When I boot I notice that the button/01-radio-toggle DOES get called a bunch of times...but won't get called after bootup. In both cases the mmc/01-mmc-storage does not get called. So what has to happen for hotplug to get called? Maybe it has something to do with my gpiomask (0x9c). Does that disable hotplug events or something? I'm sure I'm just missing a step here. I'd appreciate your help.
I'm running OpenWrt 2.4.34. I got the image from http://downloads.openwrt.org/kamikaze/7 … uashfs.bin
Thanks!