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 | |
# Script Name: manage_sd_disk.sh | |
# Description: Automates unmounting, formatting, and mounting an SD disk. | |
# Usage: ./manage_sd_disk.sh [server_host] [username] [password] | |
# Dependencies: curl, xmllint | |
set -e # Exit script on error | |
set -o pipefail # Prevent errors in a pipeline from being masked |