roleoroleo / yi-hack-MStar

Custom firmware for Yi 1080p camera based on MStar platform
GNU General Public License v3.0
835 stars 110 forks source link

/bin/busybox is missing poweroff and halt support #433

Closed meskilla closed 2 months ago

meskilla commented 2 years ago

which leads to a poweroff: applet not found message.

Did you strip it for filesize reasons? Reboot works and is listed in busybox 4.6.0 functions.

What is the safest way to shutdown the cam with a mmc vfat partition still mounted and possibly recording? I can't just cut the power cord, as this will lead to vfat corruption. Is there a stop script instead of shutdown jobs that could kill jobs and safely unmount /tmp/sd before I cut the power ?

roleoroleo commented 2 years ago

It's stripped by yi.

At the moment there is no way. You should send reboot command, wait 5 seconds and remove power cord.

meskilla commented 2 years ago

is there a shell script to safely unmount /tmp/sd first?

roleoroleo commented 2 years ago

No, but I can try to add it.

Lin-Admin commented 2 years ago

Thanks. This would be very helpful!

roleoroleo commented 2 years ago

For MStar I added it. Next release...

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.