add mythfront.config support
authorPhil Blundell <philb@gnu.org>
Sun, 7 Nov 2004 14:53:31 +0000 (14:53 +0000)
committerPhil Blundell <philb@gnu.org>
Sun, 7 Nov 2004 14:53:31 +0000 (14:53 +0000)
BKrev: 418e36ebE19m1KBwQdeIF0SIN9RBxA

mythfront/mythfront-config.oe
mythfront/mythfront-config/tftp.sh

index a330bf8..afb79f3 100644 (file)
@@ -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
index f6df424..51ccb79 100644 (file)
@@ -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
+