sorry, just read what you like to dokilroywashere wrote:Are you sure?arris69 wrote:the variable will be filled up by showmount in function get_shares()kilroywashere wrote:...
Does the SHARES variable in 03_03_nfsmount.init has any effect? I have a lot of shares but only want to mount some of them on the TV.
so you can make tweaks in get_shares().
Code: Select all
get_shares() { echo -n "Search Shares on: " for i in $SERVERS ; do S_MOUNTS=$(showmount --no-headers -e $i | cut -d " " -f1) [ -n "$S_MOUNTS" ] && do_mount $i done }
I think i takes with showmount the exports of $SERVERS and mounts them (all). But i can go in there and if $SHARES isn't empty take only these shares - similar to get_servers() with $SERVERS.

the SHARES are just an artifact from debugging version, but you can set SHARES="myshare1 myshare2"
and than replace
Code: Select all
S_MOUNTS=$(showmount --no-headers -e $i | cut -d " " -f1)
Code: Select all
S_MOUNTS=$SHARES

or you add some grep stuff
but be shure you just try to mount from server where the share realy are, elsewhere the script needs too long to run (set SERVER to correct ip).
arris