main fai scripts can run outside of fai, fixup stuff
[automated-distro-installer] / pxe-server
index d3625d692cef0441f40be9ab032691c60bd73eb9..574a896f05ea3e19bb73590655f5b8e816772252 100755 (executable)
@@ -30,10 +30,12 @@ EOF
 
 persist=false
 args=()
+redep=false
 while [[ $1 ]]; do
     case $1 in
         --) shift; break ;;
         -h|--help) usage ;;
+        -r) redep=true; shift ;;
         -p) persist=true; shift ;;
         *) args+=("$1"); shift ;;
     esac
@@ -91,7 +93,11 @@ $type | ssh wrt "cedit pxe-server /etc/dnsmasq.conf || /etc/init.d/dnsmasq resta
 if [[ $type == arch ]]; then arch-pxe-mount; fi"
 
 
+if $redep && [[ $type == fai ]]; then
+    fai-redep
+fi
 if ! $persist; then
+    echo "waiting for 2 dhcp acks then disabling pxe"
     if [[ $host ]]; then
         host_regex=" $host"
     fi