Split [debian.sh] into multiple scripts inside a [debian] directory, adjusted references in other files to reflect changes

This commit is contained in:
2026-08-01 21:48:51 -04:00
parent 2ebb72620b
commit cd8baf67e5
15 changed files with 261 additions and 12 deletions
Vendored Executable
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
set -euo pipefail
networkInterface=($(ip -br addr show | awk '!/^lo/&&!/tailscale/&&!/^wg/{print$1}'))
shopt -s extglob
for ((i = 0; i < ${#networkInterface[@]}; i++)); do
cat << EOF | tee /mnt/etc/network/interfaces.d/${networkInterface[$i]} &> /dev/null
allow-hotplug ${networkInterface[$i]}
iface ${networkInterface[$i]} inet dhcp
EOF
done