iankelling.org
/
git
/
automated-distro-installer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
main fai scripts can run outside of fai, fixup stuff
[automated-distro-installer]
/
pxe-server
diff --git
a/pxe-server
b/pxe-server
index d3625d692cef0441f40be9ab032691c60bd73eb9..574a896f05ea3e19bb73590655f5b8e816772252 100755
(executable)
--- a/
pxe-server
+++ b/
pxe-server
@@
-30,10
+30,12
@@
EOF
persist=false
args=()
persist=false
args=()
+redep=false
while [[ $1 ]]; do
case $1 in
--) shift; break ;;
-h|--help) usage ;;
while [[ $1 ]]; do
case $1 in
--) shift; break ;;
-h|--help) usage ;;
+ -r) redep=true; shift ;;
-p) persist=true; shift ;;
*) args+=("$1"); shift ;;
esac
-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 [[ $type == arch ]]; then arch-pxe-mount; fi"
+if $redep && [[ $type == fai ]]; then
+ fai-redep
+fi
if ! $persist; then
if ! $persist; then
+ echo "waiting for 2 dhcp acks then disabling pxe"
if [[ $host ]]; then
host_regex=" $host"
fi
if [[ $host ]]; then
host_regex=" $host"
fi