Infini-OPTIPLEX: init
This commit is contained in:
parent
422c1cadc2
commit
4890a4538e
11 changed files with 480 additions and 0 deletions
16
hosts/Infini-OPTIPLEX/data_setup.bash
Executable file
16
hosts/Infini-OPTIPLEX/data_setup.bash
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue