I want to execute the script on removal of usb drive. In that script I want to restart the server.
Is there any way to do the same ?
I know I have to modify the rules in /etc/udev/rules.d/.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this community
usb remove
and also runsreboot
.