forked from Archive/PX4-Autopilot
Allowed rc.txt files as well
This commit is contained in:
parent
9102b25bce
commit
c259a34a82
|
@ -46,8 +46,12 @@ if [ -f /fs/microsd/etc/rc ]
|
||||||
then
|
then
|
||||||
echo "[init] reading /fs/microsd/etc/rc"
|
echo "[init] reading /fs/microsd/etc/rc"
|
||||||
sh /fs/microsd/etc/rc
|
sh /fs/microsd/etc/rc
|
||||||
else
|
fi
|
||||||
echo "[init] script /fs/microsd/etc/rc not present"
|
# 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
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue