--- /dev/null
+## !/bin/bash
+#raw
+
+#-----------------------------------------------------------
+disable_ipv6() {
+
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_disable_ipv6[collapsed=true]\r\e[0KDisabling IPv6 in /etc/sysctl.conf ..."
+ echo
+ echo "${HASH_LINE}"
+ echo
+ log "Disabling IPv6 in /etc/sysctl.conf ..."
+
+ local sysctl_conf="/etc/sysctl.conf"
+
+ echo >>"${sysctl_conf}"
+ echo "# Disabling IPv6" >>"${sysctl_conf}"
+ echo "net.ipv6.conf.all.disable_ipv6 = 1" >>"${sysctl_conf}"
+ echo "net.ipv6.conf.default.disable_ipv6 = 1" >>"${sysctl_conf}"
+ echo >>"${sysctl_conf}"
+
+ echo
+ echo "${HASH_LINE}"
+ echo "Inhalt von '${sysctl_conf}':"
+ cat "${sysctl_conf}" | grep -v -P '^[ ]*(#|$)'
+ echo
+
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_disable_ipv6\r\e[0K"
+}
+
+disable_ipv6
+
+#end raw
+## vim: ts=4 et list