diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-12-09 18:08:02 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-12-09 18:08:02 +0100 |
commit | 55af35eeeb3026ee9aba3658b7ba12d6ea3a5015 (patch) | |
tree | 0f93da3423a483b82f255db47f474644320a8eb5 /sys/lib | |
parent | 57dbe35fb68dda4888fc4c9e8c8d0b3106a8a21c (diff) |
riostart: when system uses serial console, provide a system shell on it
on systems with serial console and graphics such as the raspberry pi,
it is nice to get a system shell on the serial console even when no
monitor is connected.
Diffstat (limited to 'sys/lib')
-rwxr-xr-x | sys/lib/dist/usr/glenda/bin/rc/riostart | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/lib/dist/usr/glenda/bin/rc/riostart b/sys/lib/dist/usr/glenda/bin/rc/riostart index 3f53b2728..fde27dff3 100755 --- a/sys/lib/dist/usr/glenda/bin/rc/riostart +++ b/sys/lib/dist/usr/glenda/bin/rc/riostart @@ -1,3 +1,6 @@ #!/bin/rc window 0,0,161,117 stats -lmisce window -miny 130 + +# run a system shell on the serial console +~ $#console 0 || window -scroll console |