auto-mount OTA volume to /mnt/ota at boot
This commit is contained in:
parent
df0a1768ec
commit
0fde37e681
24
target/d211/demo128_nand/rootfs_overlay/etc/init.d/S02ota
Executable file
24
target/d211/demo128_nand/rootfs_overlay/etc/init.d/S02ota
Executable 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
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user