Linux Auto-Shutdown on Power Disconnect: A BusKill Alternative
2025-07-31

This article details a simple alternative to BusKill for automatically shutting down a Linux system when the power is disconnected. By creating a udev rule that monitors the power supply status, a custom script (e.g., poweroff) is executed upon disconnection. This is a straightforward method for protecting laptops used in public areas from theft. The article also provides alternative script ideas, such as locking sessions, hibernating, or even destroying LUKS master keys, catering to various security needs.
Development