1
0
mirror of https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git synced 2023-10-10 11:37:40 +00:00

Replace /lib just before reboot, patch cmdline.txt and /etc/fstab

This commit is contained in:
Jan Schneider
2017-06-18 23:27:29 +02:00
parent 7c9d7e9492
commit 4af69aba51
5 changed files with 152 additions and 18 deletions

View File

@@ -6,10 +6,19 @@ ADDON_DIR=/usr/local/addons/${ADDON_NAME}
RCD_DIR=${CONFIG_DIR}/rc.d
case "$1" in
""|start|stop|restart)
""|start)
if [ -e /lib.rmupdate ]; then
mount -o remount,rw /
rm -r /lib.rmupdate
mount -o remount,ro /
fi
echo "Done."
;;
stop|restart)
echo "Nothing to do."
;;
info)
version=$(cat ${ADDON_DIR}/VERSION)
echo "Info: <b>${ADDON_NAME} addon</b><br>"