Skip to content

Instantly share code, notes, and snippets.

View ypapouin's full-sized avatar

Yann Papouin ypapouin

View GitHub Profile
@cmer
cmer / ping_check.sh
Last active February 23, 2025 20:33
Auto reboot pfSense if Internet is down
#!/bin/sh
#
# /usr/local/bin/ping_check.sh
#
# First sleep for 3 mins so that we don't run this code if box has only just booted and PPPoE not up yet.
/bin/sleep 180
test_http() {
url=${1:-http://captive.apple.com}