From df90cb5eb0f3d80ea7512d215a2a916eb0829637 Mon Sep 17 00:00:00 2001 From: Vlastimil Holer Date: Mon, 13 Sep 2021 13:42:31 +0200 Subject: [PATCH] F #227, #86: Netcfg default for Amazon Linux 2, typos --- README.md | 1 + src/etc/one-context.d/loc-10-network | 5 ++++- src/etc/one-context.d/loc-10-network.d/netcfg-scripts | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ec7bab5..25af2f7 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,7 @@ Selectable configuration types and IP configuration methods are **supported only |---------------------------------------------------------------|-------------------------------------------| | Alpine Linux 3.14 | `interfaces` | | ALT Linux p9, p10, Sisyphus | `networkd`, `nm` | +| Amazon Linux 2 | `scripts` | | Debian 9 | `interfaces` | | Debian 10, 11 | `interfaces`, `netplan`, `nm`, `networkd` | | Devuan 2 | `interfaces` | diff --git a/src/etc/one-context.d/loc-10-network b/src/etc/one-context.d/loc-10-network index 5df5d98..73c951a 100755 --- a/src/etc/one-context.d/loc-10-network +++ b/src/etc/one-context.d/loc-10-network @@ -45,6 +45,9 @@ if [ -z "${NETCFG_TYPE}" ] ; then opensuse*|sles|sled) NETCFG_TYPE='scripts' ;; + amzn) + NETCFG_TYPE='scripts' + ;; freebsd) NETCFG_TYPE='bsd' ;; @@ -81,7 +84,7 @@ fi if [ "${NETCFG_TYPE}" != 'none' ] ; then _found_valid_netcfg='no' - # from a space separated list of $NECFG_TYPE candidates check one + # from a space separated list of $NETCFG_TYPE candidates check one # by one and select the first suitable one for current environment for _cfgtype in ${NETCFG_TYPE} ; do _cfgtype_file="/etc/one-context.d/loc-10-network.d/netcfg-$(basename "${_cfgtype}")" diff --git a/src/etc/one-context.d/loc-10-network.d/netcfg-scripts b/src/etc/one-context.d/loc-10-network.d/netcfg-scripts index a3af540..863623f 100644 --- a/src/etc/one-context.d/loc-10-network.d/netcfg-scripts +++ b/src/etc/one-context.d/loc-10-network.d/netcfg-scripts @@ -31,7 +31,7 @@ is_network_supported() if command -v systemctl &>/dev/null; then systemctl is-enabled network &>/dev/null && return 0 - # NOTE: Probably not necesary test on old systems + # NOTE: Probably not necessary test on old systems elif chkconfig network --level 3 &>/dev/null || \ chkconfig network --level 5 &>/dev/null; then