How can I run 3 lines of code after Boot (to mount a network share)

Hi,

I've got a Probox2 AndroidTV box on Marshmallow.

I would like to mount a remote NFS share into it's filesystem, so that the share is accessible to all apps (I've disabled mountspace in SuperSU).
I can do this via terminal or SSH using the following 3 lines

Code:
su busybox mkdir -p /mnt/nfs/roms su busybox chmod 777 /mnt/nfs su --mount-master -c busybox mount -o rw,nolock,hard,intr,vers=3 -t nfs x.x.x.x:/mnt/Roms /mnt/nfs/roms

This works well and my Apps can find the network shares.
However I would like this be mounted automatically at every boot...

I've tried ScriptManager with this as the script

Code:
#!/system//bin/sh su busybox mkdir -p /mnt/nfs/roms su busybox chmod 777 /mnt/nfs su --mount-master -c busybox mount -o rw,nolock,hard,intr,vers=3 -t nfs x.x.x.x:/mnt/Roms /mnt/nfs/roms

The script doesn't work from script manager or cli. (I know nothing about scripting).
I'm unsure how to go about getting it run/work....
Please could someone explain to me how to get those lines to run after boot or how to fix the script...

Thanks

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by jerrell.renner
1 hour ago
Last post by sanford.kaylah
3 hours ago
Last post by cole.godfrey
2 hours ago
Last post by savanna34
4 hours ago
Last post by marques85
2 hours ago
Last post by clint.toy
4 hours ago
Last post by yswaniawski
4 hours ago