hephaest0s / usbkill

« usbkill » is an anti-forensic kill-switch that waits for a change on your USB ports and then immediately shuts down your computer.
4.38k stars 507 forks source link

macOS: halt -qnl instead of halt -q ? #90

Open JayBrown opened 6 years ago

JayBrown commented 6 years ago

The additional -n & -l options would prevent both system cache flush-to-disk and logging of the shutdown event, which might decrease shutdown time by… what? 1 millisecond? ;) Just sayin'.

Users can probably edit this themselves in this line of the script: https://github.com/hephaest0s/usbkill/blob/master/usbkill/usbkill.py#L156

Though I have no idea about the overall effects of halt -qnl on the system, as opposed to just halt -q. Anyone know?

ghost commented 11 months ago

I have added this on my fork of USBKill.