aboutsummaryrefslogtreecommitdiff
path: root/distro/openbsd.sh
blob: ba3d7c6d4ba958f821e6593eb0a1eb71586a0f53 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
set -ex

if [ "$(id -u)" -eq 0 ] ; then

	# from: pkg_info -mz
	cat > /tmp/pkglist <<EOF
bash--
curl--
git--
gmake--
go--
htop--
iperf3--
jq--
mosh--
ncdu--
neovim--
pv--
pwgen--
quirks--
ripgrep--
rsync--
shellcheck--
wget--
zstd--
EOF

	pkg_add -l /tmp/pkglist

	echo "permit nopass :wheel as root" > /etc/doas.conf

	exit 0;

fi

if ! [ -r /etc/doas.conf ] ; then
	echo "Run as root first, then as a regular user"
fi

# TODO: Desktop setup