diff --git a/files/image_config/platform/rc.local b/files/image_config/platform/rc.local index 9710bfcbf8..4d0e072a8a 100755 --- a/files/image_config/platform/rc.local +++ b/files/image_config/platform/rc.local @@ -382,7 +382,7 @@ if [ -f $FIRST_BOOT_FILE ]; then ebtables_config # Kdump tools configuration - sed -i -e "s/__PLATFORM__/$platform/g" /etc/default/kdump-tools + [ -f /etc/default/kdump-tools ] && sed -i -e "s/__PLATFORM__/$platform/g" /etc/default/kdump-tools firsttime_exit fi