I have a number of Raspberry Pi (and Pi 2) installs of OSMC around my house and every now an again something tends to go wrong with an install - bad update, bad SD card etc.
I’ve had limited success with SD Card backups in the past due to the problems with some SD cards being bigger than others (so restores fail).
Therefore, what I’d like to do is get most of my common setup scripted so that a fresh install is ready for primetime with minimal effort.
Things that I’d like to script:
- Install the latest updates
- Add file locations for add on repositories
- Add file locations for my media (external NAS connected via SMB/CIFS)
- Install favourite addons
- Set the device name (prompted by script?)
- Scan the media libraries
Ideally, I’d like to just copy a script across to a new install then SSH in to run and leave it to do its thing.
Has any got an example script that they can share?