This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Function to display help message | |
show_help() { | |
echo "Usage: $0 [OPTION]... [ARGUMENTS]..." | |
echo "Set up and mount a loop device for a given file, create a new file of specified size and mount it, or create multiple loop devices of specified size." | |
echo "" | |
echo " --help display this help and exit" | |
echo " automount <Size> automatically create a file of specified size, set up and mount it" | |
echo " multimount <Size> <Number> create multiple files of specified size and set them up as loop devices" |