16 lines
445 B
Bash
Executable file
16 lines
445 B
Bash
Executable file
#!/bin/bash
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
|
|
|
. /etc/profile
|
|
|
|
if [ "$(get_setting ipv6.enabled)" == "1" ]
|
|
then
|
|
sysctl net.ipv6.conf.all.disable_ipv6=0
|
|
sysctl net.ipv6.conf.default.disable_ipv6=0
|
|
sysctl net.ipv6.conf.lo.disable_ipv6=0
|
|
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
|
|
fi
|