aboutsummaryrefslogtreecommitdiff
path: root/distro
diff options
context:
space:
mode:
Diffstat (limited to 'distro')
-rw-r--r--distro/openbsd.sh37
1 files changed, 37 insertions, 0 deletions
diff --git a/distro/openbsd.sh b/distro/openbsd.sh
new file mode 100644
index 0000000..d39b3ec
--- /dev/null
+++ b/distro/openbsd.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+set -ex
+
+if [ "$(id -u)" -eq 0 ] ; then
+
+ cat > /tmp/pkglist <<EOF
+bash--
+curl--
+git--
+gmake--
+go--
+htop--
+iperf3--
+jq--
+ncdu--
+neovim--
+pwgen--
+quirks--
+ripgrep--
+rsync--
+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