arc: remove ipv6 switch and enable it globally

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-07-25 17:18:54 +02:00
parent 6dc044aec0
commit 9574727c71
2 changed files with 1 additions and 24 deletions

View File

@ -974,7 +974,6 @@ else
echo "W \"RD Compression: \Z4${RD_COMPRESSED}\Zn \" " >>"${TMP_PATH}/menu"
echo "X \"Sata DOM: \Z4${SATADOM}\Zn \" " >>"${TMP_PATH}/menu"
echo "u \"Switch LKM Version: \Z4${LKM}\Zn \" " >>"${TMP_PATH}/menu"
echo "c \"Switch IPv6 Support: \Z4${IPV6}\Zn \" " >>"${TMP_PATH}/menu"
echo "B \"Grep DSM Config from Backup \" " >>"${TMP_PATH}/menu"
echo "L \"Grep Logs from dbgutils \" " >>"${TMP_PATH}/menu"
echo "w \"Reset Loader to Defaults \" " >>"${TMP_PATH}/menu"
@ -1126,28 +1125,6 @@ else
LOADEROPTS="${LOADEROPTS}"
NEXT="8"
;;
c) [ "${IPV6}" == "true" ] && IPV6='false' || IPV6='true'
if [ "${IPV6}" == "true" ]; then
writeConfigKey "arc.ipv6" "true" "${USER_CONFIG_FILE}"
if cat "${USER_GRUB_CONFIG}" | grep -q 'ipv6.disable=1'; then
sed -i 's/ipv6.disable=1/ipv6.disable=0/g' "${USER_GRUB_CONFIG}"
dialog --backtitle "$(backtitle)" --title "Arc Boot" \
--infobox "Rebooting with IPv6 Support!" 4 30
sleep 3
rebootTo config
fi
elif [ "${IPV6}" == "false" ]; then
writeConfigKey "arc.ipv6" "false" "${USER_CONFIG_FILE}"
if cat "${USER_GRUB_CONFIG}" | grep -q 'ipv6.disable=0'; then
sed -i 's/ipv6.disable=0/ipv6.disable=1/g' "${GRUB_CONFIG_FILE}"
dialog --backtitle "$(backtitle)" --title "Arc Boot" \
--infobox "Rebooting without IPv6 Support!" 4 30
sleep 3
rebootTo config
fi
fi
NEXT="c"
;;
l) editUserConfig; NEXT="l" ;;
w) resetLoader; NEXT="w" ;;
v) saveMenu; NEXT="v" ;;

View File

@ -78,7 +78,7 @@ set menu_color_normal=white/black
set menu_color_highlight=white/red
set color_normal=white/black
set ARC_CMDLINE="earlyprintk earlycon=uart8250,io,0x3f8,115200n8 console=ttyS0,115200n8 root=/dev/ram rootwait pcie_aspm=off net.ifnames=0 ipv6.disable=1 nox2apic nomodeset iommu=off"
set ARC_CMDLINE="earlyprintk earlycon=uart8250,io,0x3f8,115200n8 console=ttyS0,115200n8 root=/dev/ram rootwait pcie_aspm=off net.ifnames=0 nox2apic nomodeset iommu=off"
search --set=root --label "ARC3"
if [ -e /automated ]; then