A practical anti-forensics technique: monitor USB identity with udevadm and trigger SysRq reboot on mismatch or removal. Research at anti-forensics.com.
It seems like it would be a lot simpler to have a udev rule that triggers when the specific device is removed and runs the forced reboot. That way you don’t have an extra daemon running, and you can trigger on other devices too, for instance, your mouse.
It seems like it would be a lot simpler to have a udev rule that triggers when the specific device is removed and runs the forced reboot. That way you don’t have an extra daemon running, and you can trigger on other devices too, for instance, your mouse.