2023-01-15 00:10:22 +00:00
|
|
|
#!/bin/bash
|
2023-10-23 22:44:47 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2023-01-15 00:10:22 +00:00
|
|
|
|
|
|
|
. /etc/profile
|
|
|
|
|
|
|
|
if [ "$(get_setting ipv6.enabled)" == "1" ]
|
2023-01-15 00:39:50 +00:00
|
|
|
then
|
2023-01-15 00:10:22 +00:00
|
|
|
sysctl net.ipv6.conf.all.disable_ipv6=0
|
|
|
|
sysctl net.ipv6.conf.default.disable_ipv6=0
|
|
|
|
sysctl net.ipv6.conf.lo.disable_ipv6=0
|
2023-01-15 00:11:30 +00:00
|
|
|
else
|
|
|
|
sysctl net.ipv6.conf.all.disable_ipv6=1
|
|
|
|
sysctl net.ipv6.conf.default.disable_ipv6=1
|
|
|
|
sysctl net.ipv6.conf.lo.disable_ipv6=1
|
2023-01-15 00:10:22 +00:00
|
|
|
fi
|