arc: fix syntax

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-07-02 19:08:08 +02:00
parent 351b75eceb
commit 4bbbebd3c9

View File

@ -1135,11 +1135,11 @@ else
NEXT="8"
;;
c) [ "${IPV6}" == "true" ] && IPV6='false' || IPV6='true'
if "{$IPV6}" == "true"; then
writeConfigKey "arc.ipv6" "true" "${USER_CONFIG_FILE}"
if "${IPV6}" == "true"; then
writeConfigKey "arc.ipv6" "${IPV6}" "${USER_CONFIG_FILE}"
sed -i 's/ipv6.disable=1/ipv6.disable=0/g' "${GRUB_CONFIG_FILE}"
elif "{$IPV6}" == "false"; then
writeConfigKey "arc.ipv6" "false" "${USER_CONFIG_FILE}"
elif "${IPV6}" == "false"; then
writeConfigKey "arc.ipv6" "${IPV6}" "${USER_CONFIG_FILE}"
sed -i 's/ipv6.disable=0/ipv6.disable=1/g' "${GRUB_CONFIG_FILE}"
fi
rebootTo "config"