16 lines
416 B
Text
16 lines
416 B
Text
|
#!/bin/bash
|
||
|
# SPDX-License-Identifier: Apache-2.0
|
||
|
# Copyright (C) 2020-present Fewtarius
|
||
|
|
||
|
. /etc/profile
|
||
|
|
||
|
if [ "$(get_setting ipv6.enabled)" == "1" ]
|
||
|
sysctl net.ipv6.conf.all.disable_ipv6=1
|
||
|
sysctl net.ipv6.conf.default.disable_ipv6=1
|
||
|
sysctl net.ipv6.conf.lo.disable_ipv6=1
|
||
|
else
|
||
|
sysctl net.ipv6.conf.all.disable_ipv6=0
|
||
|
sysctl net.ipv6.conf.default.disable_ipv6=0
|
||
|
sysctl net.ipv6.conf.lo.disable_ipv6=0
|
||
|
fi
|