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)

beeld is blank
Started by imoen
Last post by anthony.cassin
35 minutes ago
Last post by brando92
3 hours ago
Last post by remmerich
3 hours ago
Last post by wehner.tressa
1 hour ago
Last post by boyle.terrence
2 hours ago
Last post by alfred.mayert
4 hours ago
Last post by frami.harry
1 hour ago
Last post by collin.dach
4 hours ago