mirror of
https://github.com/samuelncui/yatm.git
synced 2026-11-08 04:18:03 +00:00
12 lines
255 B
Bash
Executable File
12 lines
255 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -ex;
|
|
|
|
mkdir -p "${TAPE_DIR}"
|
|
exec > >(tee -a "${TAPE_DIR}/ltfs.log") 2>&1
|
|
|
|
CURDIR=$(cd -- "$(dirname -- "$0")" && pwd)
|
|
SG_DEVICE=$("${CURDIR}/get_device")
|
|
|
|
mkltfs -f -d "${SG_DEVICE}" -s "${TAPE_BARCODE}" -n "${TAPE_NAME}"
|
|
sleep 3
|