auto-mount OTA volume to /mnt/ota at boot

This commit is contained in:
zzh 2026-04-27 18:37:07 +08:00
parent df0a1768ec
commit 0fde37e681

View File

@ -0,0 +1,24 @@
#!/bin/sh
#
# Auto-mount OTA volume to /mnt/ota at boot
#
case "$1" in
start)
[ -x /etc/swupdate_main ] && /etc/swupdate_main start
;;
stop)
[ -x /etc/swupdate_main ] && /etc/swupdate_main stop
;;
restart|reload)
[ -x /etc/swupdate_main ] && /etc/swupdate_main stop
[ -x /etc/swupdate_main ] && /etc/swupdate_main start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
exit 0