#!/usr/bin/bashoutput=""grubfile="$(find-L/boot-name'grub.cfg'-typef)"[-f"$grubfile"]&&!grep"^\s*linux""$grubfile"|grep-vqipv6.disable=1&&output="ipv6 disabled in grub config"grep-Eqs"^\s*net\.ipv6\.conf\.all\.disable_ipv6\s*=\s*1\b"/etc/sysctl.conf/etc/sysctl.d/*.conf/usr/lib/sysctl.d/*.conf\/run/sysctl.d/*.conf&&grep-Eqs"^\s*net\.ipv6\.conf\.default\.disable_ipv6\s*=\s*1\b"/etc/sysctl.conf/etc/sysctl.d/*.conf\/usr/lib/sysctl.d/*.conf/run/sysctl.d/*.conf&&sysctlnet.ipv6.conf.all.disable_ipv6|grep-Eq\"^\s*net\.ipv6\.conf\.all\.disable_ipv6\s*=\s*1\b"&&sysctlnet.ipv6.conf.default.disable_ipv6|\grep-Eq"^\s*net\.ipv6\.conf\.default\.disable_ipv6\s*=\s*1\b"&&output="ipv6 disabled in sysctl config"[-n"$output"]&&echo-e"\n$output"||echo-e"\n*** IPv6 is enabled on the system ***"