From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 1/3] oci: Add detection for Oracle Cloud Date: Tue, 21 Jul 2020 10:36:39 +0000 Message-ID: <20200721103641.30305-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7428811408753140142==" List-Id: --===============7428811408753140142== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Michael Tremer --- src/initscripts/system/cloud-init | 2 ++ src/initscripts/system/functions | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/src/initscripts/system/cloud-init b/src/initscripts/system/cloud= -init index 284e24d7b..d39552b01 100644 --- a/src/initscripts/system/cloud-init +++ b/src/initscripts/system/cloud-init @@ -15,6 +15,8 @@ case "${1}" in scriptname=3D"/etc/rc.d/helper/azure-setup" elif running_on_gcp; then scriptname=3D"/etc/rc.d/helper/gcp-setup" + elif running_on_oci; then + scriptname=3D"/etc/rc.d/helper/oci-setup" else # This system is not running in the cloud exit 0 diff --git a/src/initscripts/system/functions b/src/initscripts/system/functi= ons index b6e6507d6..30119918c 100644 --- a/src/initscripts/system/functions +++ b/src/initscripts/system/functions @@ -834,4 +834,15 @@ running_on_gcp() { return 1 } =20 +running_on_oci() { + if [ -r "/sys/devices/virtual/dmi/id/chassis_asset_tag" ]; then + local asset_tag=3D"$(