Replace poweroff call with magic command reboot rather than waiting for ...#4
Replace poweroff call with magic command reboot rather than waiting for ...#4boydjd wants to merge 1 commit intohephaest0s:masterfrom
Conversation
…or filesystem syncing and services to shut down gracefully.
|
poweroff -f doesn't wait for services to shut down gracefully. Sync command also doesn't take more than a second. Will make a decision about this later. |
|
The length of time of the sync command is going to depend on what is actually happening when it's executed and what filesystems are mounted. Thinking about it now though, I'm not sure why a python script is even needed. This could all be done with a udev rule on removal of a device. |
|
@boydjd I'd be interested in seeing that fork. I already experimented by converting the Python version to Bash in my fork. Seems to work - https://github.com/deekayen/usbkill |
|
I also have a fork that solves this, but it uses |
|
I have a fork that implements this as a linux driver. |
...filesystem syncing and services to shut down gracefully.