pmaports/postmarketos-mkinitfs-hook-usb-shell/20-usb-shell.sh
Oliver Smith 1c0ff6aa23 Put postmarketOS aports inside pmbootstrap repo
Later, the aports folder will probably get split up in its own repository.
But right now this is simply convenient.
2017-05-26 22:26:25 +02:00

12 lines
283 B
Bash

#!/bin/sh
IP=192.168.2.15
TELNET_PORT=24
telnetd -b "${IP}:${TELNET_PORT}" -l /bin/sh
echo "---"
echo "WARNING: usb shell is active on ${IP}:${TELNET_PORT}."
echo "This is a security hole! Only use it for debugging, and"
echo "uninstall the usb-shell hook afterwards!"
echo "---"