summaryrefslogtreecommitdiff
path: root/mythfront
diff options
context:
space:
mode:
Diffstat (limited to 'mythfront')
-rw-r--r--mythfront/mythfront-config.oe4
-rw-r--r--mythfront/mythfront-config/tftp.sh22
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
+