[devices]: Fix error parsing to idt_int for accton as7726 (#2349)
This commit is contained in:
parent
4750a87a28
commit
8a4e779ce1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user