mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-23 23:39:54 +07:00
arc: remove ipv6 switch and enable it globally
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
6dc044aec0
commit
9574727c71
@ -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" ;;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user