This howto describes how to mount a NFS share with a plugin script.
It mounts the NFS shares to /DATA/movies /DATA/music etc
So you can select them via the menu of the AZbox.
Note: 192.168.x.xx = Ip of your NAS or server
Make a new folder in the OpenXCAS plugin directory on the Azbox, using for instance PuTTy:
Code:
cd /EMU/OpenXCAS
mkdir mount
cd mount
create a file in this folder with the name
mount.sh with the following content:
Code:
#!/bin/sh
mount -t nfs 192.168.x.xx:/dir/to_your/video /DATA/movie -o nolock,soft,rsize=8192,wsize=8192
mount -t nfs 192.168.x.xx:/dir/to_your/music /DATA/music
Create a file called
openxcas.conf in the same folder:
Code:
[module]
name = mount
daemon = mount.sh
version = 1.0
then chmod 755 * in the same folder to give the files execute rights.
Go up one folder into /EMU/OpenXCAS and add a line in the
module.seq file called
mount (a # in front of a line means the plugin is deactivated).
Then you can select the plugin in the OpenXCAS menu called mount and start it with the OK or yellow button.
You should see the new files in the Movie and Music menu entries.
if you already have a HDD this might conflict with existing /DATA mounts and a harddisk that you might have installed, it will not corrupt anything it just wont work ,
Thanks to
emmanneil AND
LilleMama
Bookmarks