From aee202566324588e2ac08d4c0a40225c36879cfd Mon Sep 17 00:00:00 2001 From: Matt Theissen Date: Tue, 10 Aug 2021 20:53:51 -0500 Subject: [PATCH] Added support for Arch LTS in network section. --- provision_new_server.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/provision_new_server.sh b/provision_new_server.sh index c370665..3802dd3 100755 --- a/provision_new_server.sh +++ b/provision_new_server.sh @@ -73,6 +73,9 @@ if $(uname -r | grep -E 'el8' &>/dev/null); then elif $(uname -r | grep 'arch' &>/dev/null); then printf "Arch Linux... " sed -i "s_${cidr_old}_${cidr}_g" /etc/netctl/ens18 && printf "DONE\n" || exit 1 +elif $(grep -i 'arch' /etc/os-release &>/dev/null); then + printf "Arch Linux LTS... " + sed -i "s_${cidr_old}_${cidr}_g" /etc/netctl/ens18 && printf "DONE\n" || exit 1 else printf "FAIL\n\nOS distribution not supported! Update IP address manually before rebooting!\n\n" fi