1
0
forked from finn/tinyboard

fix BACKUP_FILE unbound variable and add ping to dep checks

This commit is contained in:
Justin Oros
2026-04-16 13:11:57 -07:00
parent ea72b14696
commit 119b747dda

View File

@@ -26,7 +26,7 @@ check_deps() {
[ "$(id -u)" -eq 0 ] || die "Run as root"
check_deps ip netplan systemctl
check_deps ip netplan systemctl ping
header "TinyBoard Network Setup"
@@ -118,6 +118,7 @@ if $IS_WIFI; then
fi
header "Writing Netplan Config"
BACKUP_FILE=""
if [ -f "$NETPLAN_FILE" ]; then
BACKUP_FILE="/root/$(basename "${NETPLAN_FILE}").bak"
cp "$NETPLAN_FILE" "$BACKUP_FILE"