diff options
Diffstat (limited to 'mythfront/mythfront-config/tftp.sh')
-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 + |