e ./pxe-server $dhcp_arg demohost fai
sleep 2
else
- fai-monitor&
+ killall fai-monitor &>/dev/null ||:
+ fai-monitor &
if [[ ! $BASEFILE_DIR ]]; then
BASEFILE_DIR=/tmp
fi
- if [[ ! -e $BASEFILE_DIR/autodiscover.iso ]]; then
- fai-cd -g grub.cfg.autodiscover -f -A $BASEFILE_DIR/autodiscover.iso
+ a=$BASEFILE_DIR/autodiscover.iso
+ b=$BASEFILE_DIR/STRETCH64.tar.gz
+ if [[ ! -e $a || $(stat -c %Y $a) -lt $(stat -c %Y $b) ]]; then
+ e s fai-cd -g $(readlink -f grub.cfg.autodiscover) -f -A $BASEFILE_DIR/autodiscover.iso
fi
boot_arg="--cdrom $BASEFILE_DIR/autodiscover.iso"
e fai-redep