Server / File Browser

My Files

A peek behind the curtain — every file the club keeps on the server, from the front-of-house code to the trophy ledger in the database.

dad
285 B · modified Dec 16, 2025 2:19pm
#!/bin/sh

# Block ifup until DAD completion
# Copyright (c) 2016-2018 Kaarle Ritvanen

has_flag() {
	ip address show dev $IFACE up | grep -q " $1 "
}

counter=100
while [ "$counter" -gt 0 ] &&
	has_flag tentative &&
	! has_flag dadfailed; do
	sleep 0.2
	counter=$((counter - 1))
done