summaryrefslogtreecommitdiff
path: root/mythfront/mythfront-config/tftp.sh
blob: f6df424a9f15ef12f93fd23113fb1bfd766313f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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