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/mythfront-config | |
parent | 464057497f7969cd146872f8488fe3d44150dbb6 (diff) |
add mythfront.config support
BKrev: 418e36ebE19m1KBwQdeIF0SIN9RBxA
Diffstat (limited to 'mythfront/mythfront-config')
-rw-r--r-- | mythfront/mythfront-config/tftp.sh | 22 |
1 files changed, 21 insertions, 1 deletions
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 + |