forked from Archive/PX4-Autopilot
Allow text files (rc.txt) in addition to rc files. We will get a very huge load of complaints and big trouble from the regular user base else.
This commit is contained in:
parent
c08135ffef
commit
d593820bf5
|
@ -46,8 +46,12 @@ if [ -f /fs/microsd/etc/rc ]
|
|||
then
|
||||
echo "[init] reading /fs/microsd/etc/rc"
|
||||
sh /fs/microsd/etc/rc
|
||||
else
|
||||
echo "[init] script /fs/microsd/etc/rc not present"
|
||||
fi
|
||||
# Also consider rc.txt files
|
||||
if [ -f /fs/microsd/etc/rc.txt ]
|
||||
then
|
||||
echo "[init] reading /fs/microsd/etc/rc.txt"
|
||||
sh /fs/microsd/etc/rc.txt
|
||||
fi
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue