safe mode for testing safe mode
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 9 commits ahead of comex:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

This isn't even my final form! (Because it isn't all that safe; it still depends on the same FS everything else is using. A proper solution would come with kexec stuff.) But at least it should prevent me from doing anything too stupid.

Tests for the volume down key; if it's found, enables USB (method borrowed from ramrod from the ramdisk; much nicer than the old one!) and execs sshd -D. Stick the binary in /etc/rc.d (make sure it's alphabetically first), then you can hold volume down on boot to go straight from the jailbreak executable to SSH over USB. Run killall sshd to continue boot.

Public domain.