From 1f43e216d97c354126b3f1c727f2b269b033267e Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Wed, 30 Jan 2013 13:06:11 +0000 Subject: [PATCH] Support detecting Amazon Linux AMI's. --- bootstrap-salt-minion.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bootstrap-salt-minion.sh b/bootstrap-salt-minion.sh index 7fc7baa..80cdfd4 100755 --- a/bootstrap-salt-minion.sh +++ b/bootstrap-salt-minion.sh @@ -322,6 +322,16 @@ __gather_linux_system_info() { slackware ) n="Slackware" ;; turbolinux ) n="TurboLinux" ;; unitedlinux ) n="UnitedLinux" ;; + system ) + while read -r line; do + [ "${n}x" != "systemx" ] && break + case "$line" in + *Amazon*Linux*AMI*) + n="Amazon Linux AMI" + break + esac + done < /etc/${rsource} + ;; * ) n="${n}" ; esac DISTRO_NAME=$n