summaryrefslogtreecommitdiff
path: root/recipes/mythfront/mythfront-config
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/mythfront/mythfront-config
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/mythfront/mythfront-config')
-rwxr-xr-xrecipes/mythfront/mythfront-config/epia/serial.sh7
-rw-r--r--recipes/mythfront/mythfront-config/epia/xorg.conf70
-rwxr-xr-xrecipes/mythfront/mythfront-config/tftp.sh36
3 files changed, 113 insertions, 0 deletions
diff --git a/recipes/mythfront/mythfront-config/epia/serial.sh b/recipes/mythfront/mythfront-config/epia/serial.sh
new file mode 100755
index 0000000000..6d2a978fea
--- /dev/null
+++ b/recipes/mythfront/mythfront-config/epia/serial.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+setserial /dev/ttyS0 uart none
+modprobe lirc_serial
+modprobe snes232
+inputattach --snes232 /dev/ttyS1 &
+
diff --git a/recipes/mythfront/mythfront-config/epia/xorg.conf b/recipes/mythfront/mythfront-config/epia/xorg.conf
new file mode 100644
index 0000000000..1783a88af8
--- /dev/null
+++ b/recipes/mythfront/mythfront-config/epia/xorg.conf
@@ -0,0 +1,70 @@
+Section "Files"
+ FontPath "unix/:7100" # local font server
+ FontPath "/usr/lib/X11/fonts/misc"
+ FontPath "/usr/lib/X11/fonts/cyrillic"
+ FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
+ FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
+ FontPath "/usr/lib/X11/fonts/Type1"
+ FontPath "/usr/lib/X11/fonts/CID"
+ FontPath "/usr/lib/X11/fonts/Speedo"
+ FontPath "/usr/lib/X11/fonts/100dpi"
+ FontPath "/usr/lib/X11/fonts/75dpi"
+EndSection
+
+Section "Module"
+ Load "ddc"
+ Load "glx"
+ Load "GLcore"
+ Load "dbe"
+ Load "dri"
+ Load "extmod"
+ #Load "pex5"
+ Load "record"
+ #Load "xie"
+ Load "bitmap"
+EndSection
+
+Section "InputDevice"
+ Identifier "Generic Keyboard"
+ Driver "keyboard"
+ Option "CoreKeyboard"
+ Option "XkbRules" "xfree86"
+ Option "XkbModel" "pc104"
+ Option "XkbLayout" "gb"
+EndSection
+
+Section "Device"
+ Identifier "Via"
+ Driver "via"
+ Option "TVType" "PAL"
+ #Option "TVVScan" "over"
+ #Option "TVDotCrawl"
+ #Option "NoDDCValue" "true"
+ Option "TVOutput" "S-Video"
+ Option "EnableAGPDMA" "true"
+EndSection
+
+Section "Monitor"
+ Identifier "TV"
+ Option "DPMS" "no"
+ HorizSync 15-70
+ VertRefresh 50-100
+ DisplaySize 400 225
+ #Modeline "720x576" 27.88 720 744 768 920 576 578 579 606 # 28 MHz, 30.3 kHz, 50.0 Hz
+ ModeLine "720x576" 32.7 720 744 816 912 576 577 580 597
+
+ #Modeline "720x576" 55.75 720 744 768 920 576 578 581 606 # 56 MHz, 60.6 kHz, 100.0 Hz
+ #ModeLine "720x480" 26.7 720 736 808 896 480 481 484 497
+ #ModeLine "720x576" 32.7 720 744 816 912 576 577 580 597
+EndSection
+
+Section "Screen"
+ Identifier "Default Screen"
+ Device "Via"
+ Monitor "TV"
+ DefaultDepth 24
+ Subsection "Display"
+ Depth 24
+ Modes "720x576"
+ EndSubsection
+EndSection
diff --git a/recipes/mythfront/mythfront-config/tftp.sh b/recipes/mythfront/mythfront-config/tftp.sh
new file mode 100755
index 0000000000..8ac4bf8020
--- /dev/null
+++ b/recipes/mythfront/mythfront-config/tftp.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+case $1 in
+ renew|bound)
+ ;;
+ *)
+ exit 0
+ ;;
+esac
+
+bootdir=`dirname $boot_file`
+
+files="mysql.txt lircrc mythfront.config"
+
+mkdir /var/lib/config
+cd /var/lib/config
+
+for fn in $files; do
+ if ! tftp -g $siaddr -r $bootdir/mythfront/$ip/$fn -l $fn; then
+ if ! tftp -g $siaddr -r $bootdir/mythfront/default/$fn -l $fn; then
+ rm -f $fn
+ fi
+ fi
+done
+
+if [ -f ./mythfront.config ]; then
+ . ./mythfront.config
+ if [ "x$REMOTE" != "x" ]; then
+ fn=`find /usr/share/lirc/remotes -name lircd.conf.$REMOTE`
+ if [ "x$fn" != "x" ]; then
+ rm -f lircd.conf
+ ln -sf $fn lircd.conf
+ fi
+ fi
+fi
+