From 7756b8d908e41c05a7888eb459be92827ec96c26 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Thu, 1 Feb 2024 23:42:05 -0500 Subject: OpenBSD script --- distro/openbsd.sh | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 distro/openbsd.sh (limited to 'distro') 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 < /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 -- cgit v1.2.3