20 lines
477 B
Bash
Executable File
20 lines
477 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [[ ${1} = "on" ]]; then
|
|
printf "\nAktiviere ipv6. $ sudo sysctl -w net.ipv6.conf...\n"
|
|
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0
|
|
|
|
else
|
|
#diabale ipv6
|
|
printf "\nDeaktiviere ipv6. $ sudo sysctl -w net.ipv6.conf...\n"
|
|
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
|
|
fi
|
|
|
|
#make it more persitant
|
|
|
|
#disable:
|
|
#sysctl -w net.ipv6.conf.default.disable_ipv6=1
|
|
|
|
#To re-enable IPv6, issue the following commands:
|
|
#sysctl -w net.ipv6.conf.default.disable_ipv6=0
|