From efafa944d69e3a43cc4ae2653fc64060120ae520 Mon Sep 17 00:00:00 2001 From: Ahmed Karic Date: Fri, 23 Aug 2024 11:11:43 +0200 Subject: [PATCH] confd: minor cleanup - removed unused parameters in functions factory() and failure() - renamed the functions --- src/confd/bin/bootstrap | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/confd/bin/bootstrap b/src/confd/bin/bootstrap index 1ae91f89..1d644808 100755 --- a/src/confd/bin/bootstrap +++ b/src/confd/bin/bootstrap @@ -88,10 +88,8 @@ console_error() return 0 } -factory() +gen_factory_cfg() { - gen=$1 - # Fetch defaults, simplifies sort in collate() cp "$FACTORY_DEFAULTS_D"/* "$FACTORY_D/" @@ -110,10 +108,8 @@ factory() collate "$FACTORY_GEN" "$FACTORY_CFG" "$FACTORY_D" } -failure() +gen_failure_cfg() { - gen=$1 - # Fetch defaults, simplifies sort in collate() cp "$FAILURE_DEFAULTS_D"/* "$FAILURE_D" @@ -141,8 +137,8 @@ gen_test_cfg() # Both factory-config and failure-config are generated every boot # regardless if there is a static /etc/factory-config.cfg or not. -factory "$FACTORY_GEN" -failure "$FAILURE_GEN" +gen_factory_cfg +gen_failure_cfg if [ -f "/mnt/aux/test-mode" ]; then gen_test_cfg