I want to run action if inserted flash drive
Edit devd.conf:
My simple script
But nothing happens. Where's the bug?
PS: with umass worked fine.
Edit devd.conf:
Code:
58 attach 0 {
59 device-name "da[0-9]+";
60 action "/home/sh/da.sh $device-name" ;
61
62 };
Code:
#!/bin/sh
echo $1 >> /home/sh/out.txt
But nothing happens. Where's the bug?
PS: with umass worked fine.