K
K
Kamikaze10242017-02-01 10:58:47
linux
Kamikaze1024, 2017-02-01 10:58:47

Why does mdev only execute the first line from its config?

Why does mdev execute only one rule from its config, and does it just ignore the second one?

#!/bin/sh

#run mount script when usb hotplugged
sda[0-9]* 0:0 777 @/userScripts/usbPlug.sh

#run umount script when usb hotunplugged
sda[0-9]* 0:0 777 $/userScripts/usbUnplug.sh

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2017-02-01
@Kamikaze1024

That is, you want it to unmount itself before you think about pulling it out of the connector?
in general, here is an example www.armadeus.org/wiki/index.php?title=Automaticall...
and for sections everywhere they use * instead of @ and $

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question