Added support for Arch LTS in network section. (#1)

Co-authored-by: Matt Theissen <theissenm@skyfalltech.net>
Reviewed-on: http://git.skyfall.tech/skyfall/internal-scripts/pulls/1
Reviewed-by: Aaron Johnson <ajohnson@skyfalltech.net>
Co-authored-by: theissenm <matt@skyfalltech.com>
Co-committed-by: theissenm <matt@skyfalltech.com>
pull/4/head
theissenm 4 years ago committed by Aaron Johnson
parent 1a40e98b5f
commit 2556420c8e

@ -73,6 +73,9 @@ if $(uname -r | grep -E 'el8' &>/dev/null); then
elif $(uname -r | grep 'arch' &>/dev/null); then elif $(uname -r | grep 'arch' &>/dev/null); then
printf "Arch Linux... " printf "Arch Linux... "
sed -i "s_${cidr_old}_${cidr}_g" /etc/netctl/ens18 && printf "DONE\n" || exit 1 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 else
printf "FAIL\n\nOS distribution not supported! Update IP address manually before rebooting!\n\n" printf "FAIL\n\nOS distribution not supported! Update IP address manually before rebooting!\n\n"
fi fi

Loading…
Cancel
Save