+}
+
+compile_tftpd() {
+ mkdir $BASEDIR/tmp
+ tar xvfz $BASEDIR/cache/tftp-hpa-0.42.tar.gz -C $BASEDIR/tmp
+ cd $BASEDIR/tmp/tftp-hpa-*
+ ./configure --prefix=/ipfire/trunk/tools/ \
+ --sbindir=/ipfire/trunk/tools/ --disable-nls
+ make
+ install -c tftpd/tftpd $BASEDIR/tools/in.tftpd
+ cd -
+ rm -rf $BASEDIR/tmp/tftp-hpa-*
+}
+
+start_tftpd() {
+ if [ ! -e $BASEDIR/tools/in.tftpd ]; then
+ compile_tftpd
+ fi
+ reload_tftpd
+ if [ "$?" == "0" ]; then
+ $BASEDIR/tools/in.tftpd -l -s $BASEDIR/tftpboot
+ beautify message DONE
+ else
+ echo -en "You don not have a pxe boot image in your base directory.\nPlease compile first."
+ beautify message FAIL
+ exit 1
+ fi
+}
+
+stop_tftpd() {
+ echo -n "Stopping TFTPD..."
+ killall in.tftpd >/dev/null 2>&1
+ sleep 3
+ killall -9 in.tftp >/dev/null 2>&1
+ beautify message DONE
+}
+
+reload_tftpd() {
+ if [ -e $BASEDIR/ipfire-$VERSION.$MACHINE-pxe.tgz ]; then
+ mkdir -p $BASEDIR/tftpboot
+ tar xfz $BASEDIR/ipfire-$VERSION.$MACHINE-pxe.tgz -C $BASEDIR/tftpboot
+ return 0
+ fi
+ return 1
+}
+
+update_langs() {
+ echo -ne "Checking the translations for missing or obsolete strings..."
+ chmod 755 $BASEDIR/tools/{check_strings.pl,sort_strings.pl,check_langs.sh}
+ $BASEDIR/tools/sort_strings.pl en
+ $BASEDIR/tools/sort_strings.pl de
+ $BASEDIR/tools/sort_strings.pl fr
+ $BASEDIR/tools/sort_strings.pl es
+ $BASEDIR/tools/check_strings.pl en > $BASEDIR/doc/language_issues.en
+ $BASEDIR/tools/check_strings.pl de > $BASEDIR/doc/language_issues.de
+ $BASEDIR/tools/check_strings.pl fr > $BASEDIR/doc/language_issues.fr
+ $BASEDIR/tools/check_strings.pl es > $BASEDIR/doc/language_issues.es
+ $BASEDIR/tools/check_langs.sh > $BASEDIR/doc/language_missings
+ beautify message DONE
+}