From 750c5a7c1a7d656a9a8114421aa387118f234427 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Thu, 9 Jul 2026 18:31:41 +0000 Subject: [PATCH] armbian_rootenc_setup: add warning for static IP with no ifupdown --- scripts/armbian_rootenc_setup.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/armbian_rootenc_setup.sh b/scripts/armbian_rootenc_setup.sh index a75ad5c..9000515 100755 --- a/scripts/armbian_rootenc_setup.sh +++ b/scripts/armbian_rootenc_setup.sh @@ -226,6 +226,13 @@ _warn_user_opts() { fi } +_warn_static_ip_without_ifupdown() { + if [ "$IP_ADDRESS" != 'none' -a "$NETCFG_IFUPDOWN" != 'y' ]; then + warn "\n You’ve requested a static IP but haven’t selected the ifupdown option (-I)." + warn " You may experience network configuration issues." + fi +} + _set_host_vars() { BUILD_DIR='armbian_rootenc_build' SRC_ROOT="$BUILD_DIR/src" @@ -1568,6 +1575,8 @@ else [ "$MOUNT_TARGET_ONLY" ] && _mount_target_and_exit _warn_user_opts + _warn_static_ip_without_ifupdown + _confirm_user_vars [ "$IP_ADDRESS" == 'none' ] || get_authorized_keys