#!/bin/sh # bee-net-restart.sh — bring up all physical interfaces via DHCP (manual re-run) for iface in $(ip -o link show | awk -F': ' '{print $2}' | grep -v '^lo$' | grep -vE '^(docker|virbr|veth|tun|tap|br-|bond|dummy)'); do echo "[$iface] bringing up..." ip link set "$iface" up 2>/dev/null || true dhclient -r "$iface" >/dev/null 2>&1 || true dhclient -4 -v "$iface" done