From 206e23213ac4d01da6635a7d9fc09ac5284df549 Mon Sep 17 00:00:00 2001 From: climberomes Date: Sun, 14 Dec 2025 02:23:58 -0800 Subject: [PATCH] revert. ide rename went too far --- installers/common.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/installers/common.sh b/installers/common.sh index ba1c4a87..0eaf97fa 100644 --- a/installers/common.sh +++ b/installers/common.sh @@ -504,8 +504,8 @@ function _install_adblock() { function _install_provider() { _install_log "Installing VPN provider support" json="$webroot_dir/config/"vpn-providers.json - while IFS='|' read -r key opt_value; do - options["$key"]="$opt_value" + while IFS='|' read -r key value; do + options["$key"]="$value" done< <(jq -r '.providers[] | "\(.id)|\(.name)|\(.bin_path)"' "$json") if [ -n "$pv_option" ]; then @@ -812,9 +812,9 @@ function _default_configuration() { if [ ${OS,,} = "ubuntu" ] && [[ ${RELEASE} =~ ^(22.04|20.04|19.10|18.04) ]]; then conf="/etc/default/hostapd" key="DAEMON_CONF" - opt_value="/etc/hostapd/hostapd.conf" - echo "Setting default ${key} path to ${opt_value}" - sudo sed -i -E "/^#?$key/ { s/^#//; s%=.*%=\"$opt_value\"%; }" "$conf" || _install_status 1 "Unable to set opt_value in ${conf}" + value="/etc/hostapd/hostapd.conf" + echo "Setting default ${key} path to ${value}" + sudo sed -i -E "/^#?$key/ { s/^#//; s%=.*%=\"$value\"%; }" "$conf" || _install_status 1 "Unable to set value in ${conf}" fi _install_log "Unmasking and enabling hostapd service"