Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • please specify some more information to enable us to follow through. If what you want is to modify the script so as to restart your server everytime you remove a usb drive it is better to write your own script that wraps usb remove and also runs reboot. Commented Jul 16, 2014 at 10:01
  • where should I call the script ? Is there any existing script which gets call on removing the usb ? Commented Jul 16, 2014 at 10:05
  • 1
    unix.stackexchange.com/questions/71348/… ... not about a drive, but the basic principle should still apply. Commented Jul 16, 2014 at 23:10