20f93d942d
Add ttyescape, a script and triggerhappy configuration to allow mobile device users to access and use a shell without having to plug in to a computer. One of the largest limitations with a mobile device is the lack of keyboard, for mainstream OSs like Android and iOS, this is a non-issue as the whole OS stack is built to automatically recover in case of a crash / hang, hiding the internal state of affairs from users and making use of careful design to minimise the impact. When bringing Linux to mobile, we carry not only the benefits of the Linux desktop but also it's limitations. In the event that your desktop manager goes haywire or hangs completely, or your graphics drivers get unhappy, the ability to quickly jump to a tty and start killing bad behaving programs or reset your display manager is one that most of us take for granted. But when hit by similar errors on a mobile device there is no such recourse available, users either have to reboot and hope that the issue doesn't occur again, or pull out a laptop and pull up a shell (assuming ssh is enabled and the rndis interface comes up). ttyescape proposes to solve this issues by pieceing together several already available tools, notably: - triggerhappy, a tool used to perform actions when certain buttons or key combinations are pressed with no dependencies on the display manager in use. - fbkeyboard, a framebuffer keyboard for tty's, it renders on top of the current tty and uses the device touchscreen as input.
33 lines
1.1 KiB
Text
33 lines
1.1 KiB
Text
# Maintainer: Caleb Connolly <caleb@connolly.tech>
|
|
pkgname=ttyescape
|
|
pkgver=0.1
|
|
pkgrel=0
|
|
pkgdesc="Daemon to allow users to escape to a tty"
|
|
url="https://postmarketos.org"
|
|
arch="all"
|
|
license="GPL-3.0-or-later"
|
|
depends="triggerhappy fbkeyboard terminus-font kbd"
|
|
install="$pkgname.post-install"
|
|
source="
|
|
togglevt.sh
|
|
ttyescape-triggerhappy.conf
|
|
etc-conf-d-ttyescape.conf
|
|
"
|
|
options="!check"
|
|
|
|
package() {
|
|
install -Dm755 "$srcdir"/togglevt.sh \
|
|
"$pkgdir"/usr/bin/togglevt.sh
|
|
|
|
install -Dm755 "$srcdir"/ttyescape-triggerhappy.conf \
|
|
"$pkgdir"/etc/triggerhappy/triggers.d/ttyescape.conf
|
|
|
|
install -Dm755 "$srcdir"/etc-conf-d-ttyescape.conf \
|
|
"$pkgdir"/etc/conf.d/ttyescape.conf
|
|
}
|
|
|
|
sha512sums="
|
|
5a56740678073c72c1952e36742fb0786f932e718835c39502ab51f9731426e2b8479de38d4c44c35bc84a895b74ea0dc7bd39fd9eb89b603973ed6e43abb377 togglevt.sh
|
|
f8bf3273cf87392ab2092a005417bc58cb3ae6ad25b9118b76c68481d9d8fc7d964a9d16fc7645f6f9ff0676dccd381be3b846464b2e60a6452b8c883bffb6f1 ttyescape-triggerhappy.conf
|
|
5429c7029e6db292cccbd4d5fdb4eb07cbbe050fe886784ebb1f88d790de35c06714c2ad38d366d88ed78a09d4d20e0826541f8f578885384ff6b033ac606af8 etc-conf-d-ttyescape.conf
|
|
"
|