From 0f14587cf04e6f507570ea5eb75fff3e3d27d8b9 Mon Sep 17 00:00:00 2001 From: c0dev0id Date: Sun, 30 Apr 2023 19:45:10 +0200 Subject: [PATCH] Update 2023-04-30 19:45 OpenBSD/amd64-mini --- .bin/checkmount | 24 ++++++++++++++++++++++++ init.sh | 4 ++-- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100755 .bin/checkmount diff --git a/.bin/checkmount b/.bin/checkmount new file mode 100755 index 0000000..9ef9fb5 --- /dev/null +++ b/.bin/checkmount @@ -0,0 +1,24 @@ +#!/bin/sh + +trap cleanup 1 2 3 6 9 11 13 15 + +cleanup() { + doas umount /mnt + mount | grep mnt +} + +usage() { + echo "usage: $(basename "$0") sd1" + dmesg |grep ^sd1 | tail -n2 + dmesg |grep ^sd2 | tail -n2 + dmesg |grep ^sd3 | tail -n2 + dmesg |grep ^sd4 | tail -n2 + exit 0 + +} + +[ -z "$1" ] && usage + +doas mount.exfat /dev/$1i /mnt/ +nnn /mnt/ +cleanup diff --git a/init.sh b/init.sh index 7a0a564..0eec622 100755 --- a/init.sh +++ b/init.sh @@ -32,7 +32,7 @@ doas mkdir -p /tank/{buffer,pub,priv,scanner} # INSTALL CORE PACKAGES doas pkg_add rsync-- vim--no_x11 git-- notion-- spectrwm-- hsetroot-- autocutsel-- dunst-- xclip-- \ wget-- lftp-- autorandr-- xautolock-- gnupg-- curl-- w3m-- universal-ctags-- \ - mutt--gpgme password-store bwm-ng-- sysclean-- fzf-- ugrep-- sqlports-- mpg123-- \ + mutt--gpgme password-store bwm-ng-- sysclean-- fzf-- ugrep-- mpg123-- pkglocatedb-- \ pinentry-dmenu-- nnn--nerd ccache-- doas mkdir -p /opt/ccache/bin @@ -87,7 +87,7 @@ fi # INSTALL BIG PACKAGES doas pkg_add chromium mpv firefox libreoffice pdfarranger ocrmypdf \ - tesseract-deu mupdf--js msmtp-- + tesseract-deu mupdf--js msmtp-- dbus-- echo -n "Is this a secure machine [y/N]?: " read