linuxOS_D21X/target/d211/demo/rootfs_overlay/etc/swupdate_main
2024-11-29 16:33:21 +08:00

18 lines
303 B
Bash
Executable File

#!/bin/sh
# Run the swupdate daemon
case "$1" in
start)
echo -n "Starting swupdate... "
# obtain ota emmc block number
mkdir -p /mnt/ota
mount /dev/mmcblk0p11 /mnt/ota
;;
stop)
echo -n "Stopping swupdate... "
umount /mnt/ota
;;
esac