px4-firmware/ROMFS/px4fmu_common/init.d/cmp_test

9 lines
198 B
Plaintext

#!nsh
cp /etc/extras/px4io-v2_default.bin /fs/microsd/px4io.loaded
if cmp /etc/extras/px4io-v2_default.bin /fs/microsd/px4io.loaded
then
echo "CMP returned true"
else
echo "CMP returned false"
fi