mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
ROMFS: Be less verbose on boot
This commit is contained in:
@@ -16,5 +16,8 @@ then
|
|||||||
set PX4IO_LIMIT 200
|
set PX4IO_LIMIT 200
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[i] Set PX4IO update rate limit: $PX4IO_LIMIT Hz"
|
if px4io limit $PX4IO_LIMIT
|
||||||
px4io limit $PX4IO_LIMIT
|
then
|
||||||
|
else
|
||||||
|
echo "[i] Set PX4IO update rate to $PX4IO_LIMIT Hz failed!"
|
||||||
|
fi
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ set LOG_FILE /fs/microsd/bootlog.txt
|
|||||||
# Try to mount the microSD card.
|
# Try to mount the microSD card.
|
||||||
#
|
#
|
||||||
# REBOOTWORK this needs to start after the flight control loop
|
# REBOOTWORK this needs to start after the flight control loop
|
||||||
echo "[i] Looking for microSD..."
|
|
||||||
if mount -t vfat /dev/mmcsd0 /fs/microsd
|
if mount -t vfat /dev/mmcsd0 /fs/microsd
|
||||||
then
|
then
|
||||||
echo "[i] microSD mounted: /fs/microsd"
|
echo "[i] microSD mounted: /fs/microsd"
|
||||||
@@ -53,11 +52,9 @@ fi
|
|||||||
#
|
#
|
||||||
if [ -f $FRC ]
|
if [ -f $FRC ]
|
||||||
then
|
then
|
||||||
echo "[i] Executing init script: $FRC"
|
echo "[i] Executing script: $FRC"
|
||||||
sh $FRC
|
sh $FRC
|
||||||
set MODE custom
|
set MODE custom
|
||||||
else
|
|
||||||
echo "[i] Init script not found: $FRC"
|
|
||||||
fi
|
fi
|
||||||
unset FRC
|
unset FRC
|
||||||
|
|
||||||
@@ -175,10 +172,8 @@ then
|
|||||||
#
|
#
|
||||||
if [ -f $FCONFIG ]
|
if [ -f $FCONFIG ]
|
||||||
then
|
then
|
||||||
echo "[i] Config: $FCONFIG"
|
echo "[i] Custom config: $FCONFIG"
|
||||||
sh $FCONFIG
|
sh $FCONFIG
|
||||||
else
|
|
||||||
echo "[i] Config not found: $FCONFIG"
|
|
||||||
fi
|
fi
|
||||||
unset FCONFIG
|
unset FCONFIG
|
||||||
|
|
||||||
@@ -331,10 +326,8 @@ then
|
|||||||
then
|
then
|
||||||
if px4io start
|
if px4io start
|
||||||
then
|
then
|
||||||
echo "[i] PX4IO started"
|
|
||||||
sh /etc/init.d/rc.io
|
sh /etc/init.d/rc.io
|
||||||
else
|
else
|
||||||
echo "[i] ERROR: PX4IO start failed"
|
|
||||||
tone_alarm $TUNE_ERR
|
tone_alarm $TUNE_ERR
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -682,8 +675,6 @@ then
|
|||||||
then
|
then
|
||||||
echo "[i] Addons script: $FEXTRAS"
|
echo "[i] Addons script: $FEXTRAS"
|
||||||
sh $FEXTRAS
|
sh $FEXTRAS
|
||||||
else
|
|
||||||
echo "[i] No addons script: $FEXTRAS"
|
|
||||||
fi
|
fi
|
||||||
unset FEXTRAS
|
unset FEXTRAS
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user