substantialRip wrote:Same issue here. MPC X SE does not recognize content.img (I know, I know, file needs to be in root directory) no matter how I try to use it (SD or USB, with or without SSD installed.)
File isn't recognized/working on MPC 3, or any of the firmwares below that (currently rolled back to 2.15)
content.img, apart of the actual content, contains three files:
1.
AUTORUN - which is executed when your pendrive is inserted. It contains set of basic startup rules and path to a proper script that's being run, for example:
{
"value0": {
"files": [],
"scripts": [
{
"askQuestion": true,
"path": "install-content.sh",
"message": "Install content? This will only install on an MPC One.",
"noButtonText": "no",
"yesButtonText": "yes"
}
]
}
}
2.
*.sh script which can run any arbitrary code as root. Basically, inside of it you may put any bash script which will be executed, no matter if it's a fork bomb, rm -rf or whatever - everything goes as root. This file contains instructions as to what to copy and where during the update.
3.
AUTORUN.CHECK - This is the most important file out of all of them, it contains hash of two previous files and it's should be generated after previous files are in their final form. Any further changes to the script files will result in a different hash and your mpc won't run the updater. If the hash inside the file must be the same as what mpc is generating based on two script files. In other words - this file opens your mpc without even tampering with the firmwares SSH stuff.