Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: External-Link in /video0
On Wed, Nov 07, 2001 at 09:53:44PM +0100, Axel Gruber wrote:
> Hi All
>
> I have a small Problem here:
>
> I have several VDR-Machines here. - Usualy all Machines have mounted the same NFS-Directorys mounted as /video0-/video4
>
> But i have 1 VDR wich i canīt mount to this VIDEO0 - but all other VDRīs should be able to
> watch the recordings from this VDR
>
> So i have mounted this /video0 Directory to each of this machines to a separate directory like /videovdr3 - and then i have
> made a symbolic-Link to the /video0 Directory of this VDR - so this vdr scanīs also this Directory and you can watch
> the recordings of the other VDR but this vdr isnīt able to record to this (thatīs ok)
>
> All this works very good - but now i have a problem.
>
> I have installed a second Harddrive to the other VDR and now i have more then 1 /video0 devices.
> Now the trick with the symbolic-Link to the /video0 Directory of the client donīt work becausethe symbolic-Links
> the 001 002.....vdr files have the wrong symb-links.....
>
> Anyone have a Idea what to do ?
I don't see a problem. You only have to symlink every subdir.
I use something like this (on the destination machine):
(This version is untested!)
mount dvb2:/video /mnt
cd /mnt/video0
for dat in `find . -type d -maxdepth 1`
do
if [ "$dat" != "." ]; then
a=`echo "$dat" | cut -d / -f2-`
cd /video/video0
ln -s "/mnt/video0/$a"
cd /video/video1
ln -s "/mnt/video1/$a"
cd /video/video2
ln -s "/mnt/video2/$a"
fi
done
Bis denn
--
Real Programmers consider "what you see is what you get" to be just as
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated,
cryptic, powerful, unforgiving, dangerous.
Home |
Main Index |
Thread Index