while :; do printf "> "; read c; $c > /dev/pts/1; done # Constantly reads input and executes command, redirecting output to the terminal.while :; do sleep 1; lsblk -Jo RM,VENDOR | jq -r '.blockdevices[] | select(.rm == true) | select(.vendor != null) | .vendor' | { read -r line || shutdown now; } done # Simple USB kill switch; in this case, it shuts down the system.