PX4: avoid nsh redirects in if statements

this helps avoid FAT filesystem corruption
This commit is contained in:
Andrew Tridgell 2013-09-06 22:14:04 +10:00
parent e43234874a
commit ef6407988b

View File

@ -86,7 +86,8 @@ then
else
echo Loading /etc/px4io/px4io.bin
tone_alarm MBABGP
if px4io update /etc/px4io/px4io.bin > /fs/microsd/APM/px4io_update.log
echo Loading /etc/px4io/px4io.bin > /fs/microsd/APM/px4io_update.log
if px4io update /etc/px4io/px4io.bin
then
cp /etc/px4io/px4io.bin /fs/microsd/px4io.loaded
echo Loaded /etc/px4io/px4io.bin OK >> /fs/microsd/APM/px4io_update.log