Skip to content

Instantly share code, notes, and snippets.

View mbonesi's full-sized avatar
💻

Maurizio Bonesi mbonesi

💻
View GitHub Profile
@mbonesi
mbonesi / gist:ef7b6a833f9476af2990d32ac7f6e487
Last active February 20, 2024 22:07
bash script to check temperature and make it persistent on the file system
#!/bin/bash
# Check if at least one parameter is provided
if [ $# -eq 0 ]; then
file_name="temp_threshold.txt"
else
# first command line par is the filnemae to read from/write to
file_name="$1"
fi
@mbonesi
mbonesi / gist:77576fe8376658c772533a41301a4932
Last active February 22, 2024 12:58
Install OMV with script AFTER PI Imager SD Card creation
# Create the SD using PI Imager and specifying the OS Lite version (the one WITHOUT Desktop)
# Stuff the SD in the Pi and boot it up, confirm it is reachable at the configured IP address
# SSH into it and run the following commands at the command prompt (this will install OMV7)
wget https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install
chmod +x install
sudo ./install -n
# On succesful completion run: