Debian Codegraph @

Drivers/Screen/Linux/bin/mode-test

raw
1 #!/bin/bash
2 set -e
3
4 say() {
5 espeak-ng "${*}" &
6 }
7
8 run() {
9 say "$((++counter))"
10 echo "${*}"
11 "${@}"
12 sleep 5
13 }
14
15 console="$(fgconsole)"
16 counter=0
17
18 run chvt 1
19 run systemctl start gdm
20 run systemctl stop gdm
21 run systemctl start getty@tty1
22
23 say "done"
24 chvt "${console}"
25 exit 0