From 709c4d66e0b107ca606941b988bad717c0b45d9b Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 17 Mar 2009 14:32:59 -0400 Subject: 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 Acked-by: Mike Westerhof Acked-by: Philip Balister Acked-by: Khem Raj Acked-by: Marcin Juszkiewicz Acked-by: Koen Kooi Acked-by: Frans Meulenbroeks --- recipes/mythfront/mythfront-config/epia/serial.sh | 7 +++ recipes/mythfront/mythfront-config/epia/xorg.conf | 70 +++++++++++++++++++++++ recipes/mythfront/mythfront-config/tftp.sh | 36 ++++++++++++ 3 files changed, 113 insertions(+) create mode 100755 recipes/mythfront/mythfront-config/epia/serial.sh create mode 100644 recipes/mythfront/mythfront-config/epia/xorg.conf create mode 100755 recipes/mythfront/mythfront-config/tftp.sh (limited to 'recipes/mythfront/mythfront-config') 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 + -- cgit v1.2.3