diff options
author | Phil Blundell <philb@gnu.org> | 2004-11-07 14:53:31 +0000 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 2004-11-07 14:53:31 +0000 |
commit | 4778a79d213aa1b1f09f6be51971ddb285c3dd81 (patch) | |
tree | b0b6ac84f6598c164595fa0e3adbef9a0ef59367 /mythfront | |
parent | 464057497f7969cd146872f8488fe3d44150dbb6 (diff) |
add mythfront.config support
BKrev: 418e36ebE19m1KBwQdeIF0SIN9RBxA
Diffstat (limited to 'mythfront')
-rw-r--r-- | mythfront/mythfront-config.oe | 4 | ||||
-rw-r--r-- | mythfront/mythfront-config/tftp.sh | 22 |
2 files changed, 24 insertions, 2 deletions
diff --git a/mythfront/mythfront-config.oe b/mythfront/mythfront-config.oe index a330bf897b..afb79f3f6e 100644 --- a/mythfront/mythfront-config.oe +++ b/mythfront/mythfront-config.oe @@ -1,4 +1,4 @@ -PV = "1.5" +PV = "1.7" DEPENDS = "xfonts-xorg" RDEPENDS_${PN} = "xfonts-xorg" @@ -27,6 +27,8 @@ do_install() { ln -sf lirc0 ${D}/dev/lirc if [ -f ${WORKDIR}/serial.sh ]; then + install -d ${D}/etc/init.d + install -d ${D}/etc/rc2.d install ${WORKDIR}/serial.sh ${D}/etc/init.d/mythfront-serial ln -sf ../init.d/mythfront-serial ${D}/etc/rc2.d/S10mythfront-serial fi diff --git a/mythfront/mythfront-config/tftp.sh b/mythfront/mythfront-config/tftp.sh index f6df424a9f..51ccb79161 100644 --- a/mythfront/mythfront-config/tftp.sh +++ b/mythfront/mythfront-config/tftp.sh @@ -1,8 +1,16 @@ #!/bin/sh +case $1 in + renew|bound) + ;; + *) + exit 0 + ;; +esac + bootdir=`dirname $boot_file` -files="mysql.txt xorg.conf" +files="mysql.txt lircrc mythfront.config" mkdir /var/lib/config cd /var/lib/config @@ -14,3 +22,15 @@ for fn in $files; do 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 + |