From 22a085139d077f7ce8f26a0bd69407ee005e6334 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sat, 8 Feb 2025 17:56:02 +0100 Subject: [PATCH] init: optimize Signed-off-by: AuxXxilium --- files/initrd/opt/arc/init.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/files/initrd/opt/arc/init.sh b/files/initrd/opt/arc/init.sh index a97d1e77..ffcde12e 100755 --- a/files/initrd/opt/arc/init.sh +++ b/files/initrd/opt/arc/init.sh @@ -131,15 +131,15 @@ elif ! echo "${BUSLIST}" | grep -wq "${BUS}"; then die "$(printf "The boot disk does not support the current %s, only %s are supported." "${BUS}" "${BUSLIST// /\/}")" fi +# Save variables to user config file +writeConfigKey "vid" "${VID}" "${USER_CONFIG_FILE}" +writeConfigKey "pid" "${PID}" "${USER_CONFIG_FILE}" + # Inform user and check bus echo -e "Loader Disk: \033[1;34m${LOADER_DISK}\033[0m" echo -e "Loader Disk Type: \033[1;34m${BUS}\033[0m" echo -# Save variables to user config file -writeConfigKey "vid" "${VID}" "${USER_CONFIG_FILE}" -writeConfigKey "pid" "${PID}" "${USER_CONFIG_FILE}" - # Decide if boot automatically BUILDDONE="$(readConfigKey "arc.builddone" "${USER_CONFIG_FILE}")" if [ "${ARCMODE}" = "config" ]; then