diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2024-02-01 23:42:05 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2024-02-01 23:42:17 -0500 |
| commit | 7756b8d908e41c05a7888eb459be92827ec96c26 (patch) | |
| tree | 5dbe24665800d59cd26fe44897ae549e99b8fe91 /distro/openbsd.sh | |
| parent | 8931c5f9a5eec7b91899f0c1e08f5d33f4432caf (diff) | |
| download | dotfiles-7756b8d908e41c05a7888eb459be92827ec96c26.tar.gz dotfiles-7756b8d908e41c05a7888eb459be92827ec96c26.tar.xz | |
OpenBSD script
Diffstat (limited to 'distro/openbsd.sh')
| -rw-r--r-- | distro/openbsd.sh | 37 |
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 |
