Merge pull request 'Simplification of Kniod subnet filtering' (#6) from kniod-subnet into master

Reviewed-on: http://git.skyfall.tech/skyfall/internal-scripts/pulls/6
pull/9/head
theissenm 3 years ago
commit dfd9797aa6

@ -5,7 +5,7 @@
name_old=$(cat /etc/hostname) name_old=$(cat /etc/hostname)
#Below command preserved in case it is needed to add older OS support #Below command preserved in case it is needed to add older OS support
#ipadd_old=$(ifconfig | awk '/inet6/{next;} /127.0.0.1/{next;} /inet/{print $2;}' | grep 172.23) #ipadd_old=$(ifconfig | awk '/inet6/{next;} /127.0.0.1/{next;} /inet/{print $2;}' | grep 172.23)
cidr_old=$(ip a | awk '/inet6/{next;} /127.0.0.1/{next;} /inet/{print $2;}' | grep 172.23 || ip a | awk '/inet6/{next;} /127.0.0.1/{next;} /inet/{print $2;}' | grep 172.21) cidr_old=$(ip a | awk '/inet6/{next;} /127.0.0.1/{next;} /inet/{print $2;}' | grep -E '172.2[31]')
ipadd_old=$(echo $cidr_old | awk -F '/' '{print $1}') ipadd_old=$(echo $cidr_old | awk -F '/' '{print $1}')
ipc_present=false ipc_present=false

Loading…
Cancel
Save