Skip to content

Commit

Permalink
update diag install action
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Dai authored and tiantianlv committed May 12, 2020
1 parent cae7d9f commit ebdfe50
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions files/image_config/platform/rc.local
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ update_mgmt_interface_macaddr() {
sed -i "/eth0/ s/ATTR{address}==\"$old_mac\"/ATTR{address}==\"$new_mac\"/g" /etc/udev/rules.d/70-persistent-net.rules
}

diag_install() {
echo "Diag install start ..."
sleep 200
dpkg -i /home/Ali_Diag_V2.0.4.deb
}

boot_action() {
#cleanos
CLEAN_OS_FILE="/etc/sonic/cleanos"
Expand All @@ -102,8 +108,7 @@ boot_action() {
#diag install
if [ ! -d /usr/local/CPU_Diag ];then
echo "Diag install"
sleep 200
dpkg -i /home/Ali_Diag_V2.0.4.deb
diag_install > /var/log/diagInstallLog &
fi
}

Expand Down

0 comments on commit ebdfe50

Please sign in to comment.