For reference - my pre-app.script

Share your success stories with others

Moderator: Pablo

Post Reply
shinysteve
Contributor
Posts: 64
Joined: Fri Apr 09, 2004 5:45 pm
Location: Bonn, Germany
Contact:

For reference - my pre-app.script

Post by shinysteve » Sat Apr 10, 2004 9:28 pm

Just for reference - others might find this usefult to see an example of tftp and smb mounts in the pre-app.script file.

Steve.

------------------------------
# cat preapp.script
#all the stuff that minimyth need extra
mkdir /mnt/store
mkdir /mnt/video
mkdir /mnt/music
mkdir /mnt/video/films
mkdir /mnt/video/tv
mkdir /mnt/photos
mkdir /mnt/share
smbmount //172.16.16.33/TV /mnt/video/tv -o username=guest,password=guest
smbmount //172.16.16.33/Films /mnt/video/films -o username=guest,password=guest
smbmount //172.16.16.33/Music /mnt/music -o username=guest,password=guest
smbmount //172.16.16.33/Photos /mnt/photos -o username=guest,password=guest
ln -s /mnt/images /mnt/store/images
ln -s /mnt/videos /mnt/share/videos/dvd
ln -s /mnt/music /mnt/store/music

# lirc stuff
rm /etc/configfiles/lircd.conf.homebrew
rm /etc/configfiles/lircrc.pinnacle
tftp -g -r lircd.conf 172.16.16.5 -l /etc/lircd.conf
tftp -g -r lircrc 172.16.16.5 -l /tmp/lircrc
mknod /tmp/lirc c 61 o
insmod -r lirc_serial type=0 irq=4 io=0x03f8
/sbin/lircd.homebrew

----------------------------------

Eduardo
Contributor
Posts: 212
Joined: Thu Mar 04, 2004 6:30 pm
Location: Winnipeg, Canada

Post by Eduardo » Sun Apr 18, 2004 8:15 pm

Good idea: Here is my version, with NFS mounts:
I have all my myth directories off a single mount, so I don't have to bother with multiple mounts:
/mnt/myth/mythvideo
/mnt/myth/mythgallery
/mnt/myth/mythmusic
/mnt/myth/mythtv

I also have another mount, for /root/.mythtv so it can store the themes and mythweather settings. I store my LIRC files in there because they are custom to that frontend, (hoping to have multiple frontends one day).

#!/bin/sh
# Create directories
mkdir -p /mnt/myth

#Mount the Myth Directories
mount -t nfs 192.168.0.112:/myth /mnt/myth/ -orw,noatime,rsize=8192,wsize=8192,hard,intr,nfsvers=3

#Mount root's home myth configs
mount -t nfs 192.168.0.112:/myth/`hostname`/mythtv /root/.mythtv -orw,noatime,rsize=8192,wsize=8192,hard,intr,nfsvers=3

#Move lirc files from roots config's to the default locations
cp /root/.mythtv/lircrc /etc/configfiles/lircrc.pinnacle
cp /root/.mythtv/lircd.conf /etc/configfiles/lircd.conf.homebrew

# Modify the background so that the dither grey background does not show on re-sized GUI
cp /root/.mythtv/xsetroot /tmp
chmod +x /tmp/xsetroot
sleep 30 && /tmp/xsetroot -display :0 -solid black &

Post Reply