Author Topic: Sd Card Mount Detection Process  (Read 2002 times)

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Sd Card Mount Detection Process
« on: August 12, 2005, 03:47:07 am »
I would like to run a simple script when my sd or cf card is inserted, where is the mechanism for this and at what point can I call the script? In other words whats the best way to run a script(automatically) when the card is inserted?
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Sd Card Mount Detection Process
« Reply #1 on: August 19, 2005, 11:36:39 pm »
no one runs scripting when the card is inserted? I was thinking of the fstab, but thats for file systems, so no ideas huh?
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Sd Card Mount Detection Process
« Reply #2 on: August 20, 2005, 11:48:22 am »
sdcontrol is the script which handles it iirc.

Do a search for it under /etc/


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva