Please, see /etc/sysconfig/network-scripts/init.ipv6-global. There is used "sysctl -a | grep", although the sysctl command supports selection. It means sysctl -a | grep "^net\.ipv6\.conf\." could be replaced with: sysctl net.ipv6.conf Why? See: # sysctl net.ipv6.conf | wc -l 84 # sysctl -a | wc -l 608 To be honest, the way how this init script reads list of interfaces is *ugly*. sysctl -a | grep "^net\.ipv6\.conf\." | awk -F. '{ print $4 }' | sort -u should be replaced with: ls /proc/sys/net/ipv6/conf/
Created attachment 152727 [details] diff Here's what's going in 8.52-1. Cuts the time for showsysctl from 16 seconds to a little over 1.