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 to monitor devices on network (regardless of connectivity type. | |
# i.e. wired, wireless, vpn). New devices (either new MAC or old MAC with | |
# new hostname) joining the network will trigger an email alert to be sent. | |
# | |
# REQUIRED ENTWARE PACKAGES : | |
# * msmtp - SMTP client to send mail to external email addresses | |
# | |
# Author: SidneyC <sidneyc_at_outlook_dot_com> | |
# |
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 to auto start/stop 5GHz wireless radio based on presence of | |
# certain MAC addresses on the LAN. | |
# CODITION TO : | |
# * TURN ON radio - one or more device(s) is/are on LAN | |
# * TURN OFF radio - ALL devices are _NOT_ on 5GHz band | |
# | |
# REQUIRED ENTWARE PACKAGES : | |
# * wget - Get files over HTTP/S, FTP | |
# |
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 | |
####################################################################### | |
# This is a helper script that keeps snapraid parity info in sync with | |
# your data and optionally verifies the parity info. Here's how it works: | |
# 1) It first calls diff to figure out if the parity info is out of sync. | |
# 2) If parity info is out of sync, AND the number of deleted files exceed | |
# X (configurable), it triggers an alert email and stops. (In case of | |
# accidental deletions, you have the opportunity to recover them from | |
# the existing parity info) | |
# 3) If partiy info is out of sync, AND the number of deleted files exceed X |