From 87cd2bf55109aa528b90ba316cc54f6e07d7b4e9 Mon Sep 17 00:00:00 2001 From: anon Date: Tue, 10 Dec 2024 20:39:02 +0100 Subject: [PATCH] Added 'Misc./terribly_old_scripts/ipv6-get' --- Misc./terribly_old_scripts/ipv6-get | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 Misc./terribly_old_scripts/ipv6-get diff --git a/Misc./terribly_old_scripts/ipv6-get b/Misc./terribly_old_scripts/ipv6-get new file mode 100755 index 0000000..c8f648a --- /dev/null +++ b/Misc./terribly_old_scripts/ipv6-get @@ -0,0 +1,13 @@ +#!/bin/bash + +# Print kernel ipv6 enabled status + +enable -n echo + +fgrep 0 /proc/sys/net/ipv6/conf/all/disable_ipv6 &> /dev/null + +if [ $? == "0" ]; then + echo -e "IPv6 connections are currently \033[1menabled\033[0m." + else + echo -e "IPv6 connections are currently \033[1mdisabled\033[0m." +fi