Being a sudo command it will only work until reboot correct?
Not in this case. Sudo is being used to switch to the superuser, from where a file is added to that the OS reads on startup, which configures how it handles USB devices. That fix is likely permanent.
Changes to /etc/sysctl.conf on linux are of course permanent since it's what the system uses at startup.
No idea about mac though.