Reply
Thread Tools
Posts: 50 | Thanked: 45 times | Joined on Dec 2009 @ France
#1
Hi,

How could I run a script each time the internal memory was mount ?

I want to check each time I unplug the usb cable if a nasty windows host has put an autorun.inf file on my internal memory.

Last edited by mymybib; 2010-10-11 at 21:59. Reason: Better english ?
 
Posts: 992 | Thanked: 995 times | Joined on Dec 2009 @ California
#2
Put it into /etc/if-pre-up.d/ directory if you want to run it BEFORE.

And use /etc/if-post-down.d/ if you want to run it AFTER disconnect.
 
Reply


 
Forum Jump


All times are GMT. The time now is 18:43.