summary refs log tree commit diff
path: root/etc/s6-rc/lynx/run
blob: 6a3578213f286030d0cd1d269bb6079ac6361926 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/execlineb -P
# SPDX-License-Identifier: EUPL-1.2
# SPDX-FileCopyrightText: 2021 Alyssa Ross <hi@alyssa.is>

export TERM foot
export TERMINFO_DIRS /usr/share/terminfo
export TMPDIR /run

backtick USER { id -un }
backtick HOME {
  importas -i user USER
  homeof $user
}

importas -i home HOME
cd $home

redirfd -u 0 /dev/hvc0
fdmove -c 1 0
fdmove -c 2 0

foreground { clear }
unexport ?

# Run lynx, then a login shell to allow for debugging.
foreground { lynx https://spectrum-os.org/ }
exec -l sh