From 2556420c8ea7dea3c6ef3a9e6bfcccd8ed0b0a31 Mon Sep 17 00:00:00 2001 From: theissenm Date: Tue, 10 Aug 2021 21:40:29 -0500 Subject: [PATCH] Added support for Arch LTS in network section. (#1) Co-authored-by: Matt Theissen Reviewed-on: http://git.skyfall.tech/skyfall/internal-scripts/pulls/1 Reviewed-by: Aaron Johnson Co-authored-by: theissenm Co-committed-by: theissenm --- provision_new_server.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/provision_new_server.sh b/provision_new_server.sh index c370665..4d58798 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 (alternative kernel)... " + 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