From 8a4e779ce19233b6cc0c140e97f6787029d9ef99 Mon Sep 17 00:00:00 2001 From: jostar-yang Date: Thu, 6 Dec 2018 08:02:27 +0800 Subject: [PATCH] [devices]: Fix error parsing to idt_int for accton as7726 (#2349) --- .../as7726-32x/utils/accton_handle_idt.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/platform/broadcom/sonic-platform-modules-accton/as7726-32x/utils/accton_handle_idt.sh b/platform/broadcom/sonic-platform-modules-accton/as7726-32x/utils/accton_handle_idt.sh index b43f475eff04..a4c7c745fd11 100755 --- a/platform/broadcom/sonic-platform-modules-accton/as7726-32x/utils/accton_handle_idt.sh +++ b/platform/broadcom/sonic-platform-modules-accton/as7726-32x/utils/accton_handle_idt.sh @@ -3,15 +3,13 @@ if [ -s /usr/local/bin/done_idt_init ];then echo "There is a done_idt_init file" else - - cat /etc/init.d/opennsl-modules-3.16.0-5-amd64|grep mac_handle.sh + cat /etc/init.d/opennsl-modules-4.9.0-7-amd64|grep idt_init.sh if [ $? -ne 0 ];then echo "Add idt_init.sh to opennsl-modules for TD3 MAC" - sed -i '/modprobe linux-kernel-bde/i sleep 1' /etc/init.d/opennsl-modules-3.16.0-5-amd64 - sed -i '/sleep/i /usr/local/bin/idt_init.sh' /etc/init.d/opennsl-modules-3.16.0-5-amd64 - sed -i '/idt_init/i echo "IDT init" ' /etc/init.d/opennsl-modules-3.16.0-5-amd64 - sed -i '/IDT init/i echo 1 > /usr/local/bin/done_idt_init' /etc/init.d/opennsl-modules-3.16.0-5-amd64 - + sed -i '/modprobe linux-kernel-bde/i sleep 1' /etc/init.d/opennsl-modules-4.9.0-7-amd64 + sed -i '/sleep/i /usr/local/bin/idt_init.sh' /etc/init.d/opennsl-modules-4.9.0-7-amd64 + sed -i '/idt_init/i echo "IDT init" ' /etc/init.d/opennsl-modules-4.9.0-7-amd64 + sed -i '/IDT init/i echo 1 > /usr/local/bin/done_idt_init' /etc/init.d/opennsl-modules-4.9.0-7-amd64 fi fi