mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 19:57:12 +08:00
Allowed rc.txt files as well
This commit is contained in:
+6
-2
@@ -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
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user