First of all I just registered and have been using OMV the day it was released. Was using Freenas since 0.6 days. OMV is amazing but what really makes it shine is it's plugins and scripts like the one you have created. You make difficult tasks easy and I thank you for all your hard work. OMV with your scripts takes the NAS into a whole new level.
Just tried your last script all is working except option 13 and 14 seems to be disabled.