Skip to content

Commit

Permalink
Add basic version of TTY script
Browse files Browse the repository at this point in the history
Will be used with #9
  • Loading branch information
Douile committed Aug 17, 2023
1 parent d1a328c commit b69d205
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sbin/mpv-tty
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

CMD="doas -u test sh /home/test/mpv-http-queue/start.sh"

if [ -c /dev/tty6 ]; then
chvt 6
exec $CMD </dev/tty6 >/dev/tty6 2>&1
else
exec openvt -c 6 -s -w $CMD
fi

0 comments on commit b69d205

Please sign in to comment.