From 6b94ebd14bc26877c3e48a9834f348516896036f Mon Sep 17 00:00:00 2001 From: Wirut Getbamrung Date: Mon, 5 Nov 2018 15:18:06 +0800 Subject: [PATCH 1/2] Update method to get optic temperature --- platform/broadcom/sonic-platform-modules-cel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/broadcom/sonic-platform-modules-cel b/platform/broadcom/sonic-platform-modules-cel index 18b4e8758111..437489809fb1 160000 --- a/platform/broadcom/sonic-platform-modules-cel +++ b/platform/broadcom/sonic-platform-modules-cel @@ -1 +1 @@ -Subproject commit 18b4e8758111ddcadcd9f5cbca58bac657920ac3 +Subproject commit 437489809fb12687f60489803d22cef929765aeb From 4f4109f7209ad8a3640ddd8ee986d9d23dd21121 Mon Sep 17 00:00:00 2001 From: Wirut Getbamrung Date: Tue, 6 Nov 2018 15:05:33 +0700 Subject: [PATCH 2/2] Remove unuse config for eth0 does not exist issue --- files/build_templates/sonic_debian_extension.j2 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/files/build_templates/sonic_debian_extension.j2 b/files/build_templates/sonic_debian_extension.j2 index 7d2e4ebdc396..02ac97ba2b9a 100644 --- a/files/build_templates/sonic_debian_extension.j2 +++ b/files/build_templates/sonic_debian_extension.j2 @@ -244,9 +244,10 @@ sudo dpkg --root=$FILESYSTEM_ROOT -P {{ debname }} sudo rm -f $FILESYSTEM_ROOT/usr/sbin/policy-rc.d -## Revise /etc/init.d/networking -sudo sed -i 's/udevadm settle/udevadm settle -E \/sys\/class\/net\/eth0/' $FILESYSTEM_ROOT/etc/init.d/networking - +## Revise /etc/init.d/networking for Arista switches +if [ "$image_type" = "aboot" ]; then + sudo sed -i 's/udevadm settle/udevadm settle -E \/sys\/class\/net\/eth0/' $FILESYSTEM_ROOT/etc/init.d/networking +fi # Service to update the sshd config file based on database changes for Arista devices sudo cp $IMAGE_CONFIGS/ssh/sshd-config-updater.service $FILESYSTEM_ROOT/etc/systemd/system