2015-07-16, 21:29
Is there a way to make this addon backup and restore autostart.sh as part of the same process that backs up and restores the other files? The reason I ask is because I want it to restore guisettings.xml by placing my autostart.sh script in the directory with the following code:
I can hide a fresh guisettings.xml file in the xbmcbackup folder that would be copied into the userdata folder on startup, thus getting around that file being overwritten during shutdown
I really really need to make this work. I have machines running the same setup in different areas and don't want to have to copy each one over manually.
Code:
#!/bin/sh
(sleep 20; \
rm -rf /storage/.kodi/userdata/guisettings.xml; \
cp /storage/.kodi/userdata/addon_data/script.xbmcbackup/guisettings.xml /storage/.kodi/userdata/guisettings.xml
)&
I can hide a fresh guisettings.xml file in the xbmcbackup folder that would be copied into the userdata folder on startup, thus getting around that file being overwritten during shutdown
I really really need to make this work. I have machines running the same setup in different areas and don't want to have to copy each one over manually.