Skip to content

Navigation Menu

Sign in
Sign up

Replace poweroff call with magic command reboot rather than waiting for ... - #4

Open
boydjd wants to merge 1 commit into
hephaest0s:master from
boydjd:master
Open

Replace poweroff call with magic command reboot rather than waiting for ... #4
boydjd wants to merge 1 commit into
hephaest0s:master from
boydjd:master

Conversation

@boydjd

@boydjd boydjd commented May 5, 2015

Copy link
Copy Markdown

...filesystem syncing and services to shut down gracefully.

...or filesystem syncing and services to shut down gracefully.

Copy link
Copy Markdown
Owner

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.

boydjd commented May 5, 2015

Copy link
Copy Markdown
Author

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.

deekayen commented May 6, 2015

Copy link
Copy Markdown
Contributor

@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

Copy link
Copy Markdown

I also have a fork that solves this, but it uses udev and launchd so there is no infinite looping: https://github.com/terrorbyte/usbkill

Copy link
Copy Markdown

I have a fork that implements this as a linux driver.
https://github.com/NateBrune/silk-guardian
It maybe preforms a little better than userspace programs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /