3 ms·
For anyone wondering how this works, molly-guard uses package diversions to actually rename the shutdown/reboot/... binaries and replace them with molly-guard:
by remram 2y ago
For anyone wondering how this works, molly-guard uses package diversions to actually rename the shutdown/reboot/... binaries and replace them with molly-guard: https://git.launchpad.net/ubuntu/+source/molly-guard/tree/debian/molly-guard.preinst https://git.launchpad.net/ubuntu/+source/molly-guard/tree/de...
This is a cool ability of dpkg that is not well known. You can use it without making a package as well.
- ale42 2y agoDidn't know what specific technique it used to do that, thanks for mentioning this! Btw for those who wonder where the name comes from: https://news.ycombinator.com/item?id=26633320 https://news.ycombinator.com/item?id=26633320