I just wanted an icon or two for VM's and not the whole banner and icon 'repo concept' of spaceinvader one's great work. So I made a very simple script that copies any PNG file in the root of the flash drive. Same exact steps to install the script just made it instead be:
#!/bin/bash
# this script copies all png files from flash drive to vm icon folder
rsync -a /boot/*.png /usr/local/emhttp/plugins/dynamix.vm.manager/templates/images
if you want a bit more of a robust script with error reporting, logging, cleanup of permissions, etc this would work as well:
#!/bin/bash
# this script copies all png files from flash drive to vm icon folder
echo "+=============================================================================="
echo " | Installing new package /boot/config/plugins/user.scripts/iconpush"
echo "+=============================================================================="
echo "Found the following PNG files:"
ls -al /boot/*.png
rsync -a /boot/*.png /usr/local/emhttp/plugins/dynamix.vm.manager/templates/images
echo "Return Code: $?"
chmod 644 /usr/local/emhttp/plugins/dynamix.vm.manager/templates/images/*
echo "Return Code: $?"
sleep 3
exit
I was hoping the icons would show up on creation of a VM, but it seems you can only modify a VM with the new icons. It's good enough though.
Hope this helps someone else if they have this need. I have attached the folder with the 2 required files to drop into the \flash\config\plugins\user.scripts\scripts folder in case people are not clear on how to modify an existing script.
iconpush.zip