blob: fe47b94268a6747cec5bbcd42e34b0967bc360ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env zsh
source .env
if grep -q "${EXTERNAL_STORAGE_MOUNT_PATH}"; then
echo "Already mounted."
exit
fi
echo "${EXTERNAL_STORAGE_MOUNT_PARTITION} ${EXTERNAL_STORAGE_MOUNT_PATH} ${EXTERNAL_STORAGE_MOUNT_FS_TYPE} auto,nofail,rw,user 0 0" >> "/etc/fstab"
mkdir -p "${EXTERNAL_STORAGE_MOUNT_PATH}"
mount -v "${EXTERNAL_STORAGE_MOUNT_PATH}"
|