Hallo,
ich habe eine zweite Netzwerkkarte in meinen easyvdr 0.8 rein mit einer Direktanbingung an einen weiteren PC. Mounten und umounten mache ich ueber einen Eintrag in der commands.conf.
Funktioniert manuell bestens mit :
modprobe e1000e
ifconfig eth1 192.168.5.2 up
So, nun moechte ich dass der vdr die beiden Befehle automatisch beim Start des Rechners erledigt. Wo sollte ich diese eintragen ?
[EDIT Danke, hat bestens funktioniert - Ich schreibe die Loesung(en) gleich hier rein]
1. Loesung :
a)In /etc/network/interfaces folgendes hinzugefuegt :
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static
address 192.168.5.2
netmask 255.255.255.0
b)In /etc/modules
e1000e
2. Loesung :
a)In /etc/init.d/RCStartBeforVDR.d/RCStartPersonal folgendes hinzugefuegt :
modprobe e1000e
ifconfig eth1 192.168.5.2 up
3. Loesung (manuell) :
a)Skript erzeugt,z.B : /usr/bin/oeffneVideothek.sh
b)Eintrag in commands.conf : "In Videothek gehen ? :/usr/bin/oeffneVideothek.sh
c)im skript "oeffneVideothek" steht :
#!/bin/sh
modprobe e1000e
ifconfig eth1 192.168.5.2 up
mkdir /mnt/Videothek
mount -t cifs username=xxx,password=xxx //192.168.5.3/<freigegebenenOrdner> /mnt/Videothek
ln -s /video0/Videothek /mnt/Videothek
touch /video0/.update | at now
d)das ganze nochmal fuer das Entfernen :
- commands.conf - Eintrag, z.B. : "Videothek verlassen ? :/usr/bin/schliesseVideothek.sh
- Skript erzeugt,z.B. : /usr/bin/schliesseVideothek.sh
Im skript steht :
#!/bin/sh
rm /video0/Videothek
touch /video0/.update | at now
umount -f /mnt/Videothek
rm -r /mnt/Videothek
modprobe -r e1000e
ifconfig eth1 down
Gruesse
Q