15 lines
184 B
Bash
Executable file
15 lines
184 B
Bash
Executable file
#!/bin/bash
|
|
|
|
export IFS=$'\t\n'
|
|
|
|
export MOUNT_DIR="/mnt/extract"
|
|
|
|
echo "Unmounting"
|
|
echo
|
|
|
|
sudo umount "$MOUNT_DIR"
|
|
sudo rmdir "$MOUNT_DIR"
|
|
sudo qemu-nbd -d /dev/nbd0
|
|
|
|
echo
|
|
echo "Done"
|