There may be a guard (usually a simple check for a specific flag file somewhere in the rootfs) that prevents it from running on production FW if the script lives someplace that doesn't get wiped

.
(That's a generic comment, I haven't checked this script in particular).