Infini-OPTIPLEX: init

This commit is contained in:
Infinidoge 2023-10-19 18:51:15 -04:00
parent 422c1cadc2
commit 4890a4538e
11 changed files with 480 additions and 0 deletions

View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
# [[file:readme.org::data_setup][data_setup]]
# [[file:readme.org::data_setup][boilerplate]]
DISK=$1
PART=$DISK$2
sudo mkdir -p /mnt
# boilerplate ends here
# [[file:readme.org::data_setup][mount_check]]
if mountpoint -q -- "/mnt"; then
echo "ERROR: /mnt is a mounted filesystem, aborting"
exit 1
fi
# mount_check ends here
# data_setup ends here