diff options
Diffstat (limited to 'mythfront/mythfront-config/tftp.sh')
-rw-r--r-- | mythfront/mythfront-config/tftp.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mythfront/mythfront-config/tftp.sh b/mythfront/mythfront-config/tftp.sh index e69de29bb2..f6df424a9f 100644 --- a/mythfront/mythfront-config/tftp.sh +++ b/mythfront/mythfront-config/tftp.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +bootdir=`dirname $boot_file` + +files="mysql.txt xorg.conf" + +mkdir /var/lib/config +cd /var/lib/config + +for fn in $files; do + if ! tftp -g $serverid -r $bootdir/mythfront/$ip/$fn -l $fn; then + if ! tftp -g $serverid -r $bootdir/mythfront/default/$fn -l $fn; then + rm -f $fn + fi + fi +done |