Maybe the change you made to my script that gives you this errorNot working for me, I've tried on 2 different switches with 2 original SXOS licences, this is how I tested:
Installed 10.0.0.2 firmware on emunand.
Tried boot.dat from 2.9.5 (unpatched works fine and boots into emunand using original licence.dat).
Using patched (manual and from scripts) boot,dat - sxos freezes on sxos logo screen, long press of volume plus button brings up sxos admin menu - this shows emunand as disabled, and sxos licence fail.