Skip to content

Instantly share code, notes, and snippets.

@jaxsong
jaxsong / axis_camera_sdformat.sh
Last active March 24, 2025 03:55
sd format on axis camera
#!/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