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:
13
rmupdate
13
rmupdate
@@ -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>"
|
||||
|
Reference in New Issue
Block a user