diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-09-19 07:55:34 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-09-19 07:55:34 +0200 |
commit | 3a49ec9eb1c5daa8b2c9cd3e9f88d18f19ef66a8 (patch) | |
tree | 4b0bedba1415136cf03b11d25eb61aa88be87b88 | |
parent | fdc45219493560487d95cdf88a66117ba43fa854 (diff) | |
download | px4-firmware-3a49ec9eb1c5daa8b2c9cd3e9f88d18f19ef66a8.tar.gz px4-firmware-3a49ec9eb1c5daa8b2c9cd3e9f88d18f19ef66a8.tar.bz2 px4-firmware-3a49ec9eb1c5daa8b2c9cd3e9f88d18f19ef66a8.zip |
Hotfix: Guard against corrupted param files, still boot the system if they occur
-rwxr-xr-x | ROMFS/px4fmu_common/init.d/rcS | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 040b5d594..07ccbb3f4 100755 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -84,7 +84,12 @@ then param select /fs/microsd/params if [ -f /fs/microsd/params ] then - param load /fs/microsd/params + if param load /fs/microsd/params + then + echo "Parameters loaded" + else + echo "Parameter file corrupt - ignoring" + fi fi #fi |