redep=true
acks=2
wait=false
-temp=$(getopt -l help harSw "$@") || usage 1
+temp=$(getopt -l help adrSwh "$@") || usage 1
eval set -- "$temp"
while true; do
case $1 in
;;
esac
+if $wait && ! $dhcp; then
+ echo "$0: error -w conflicts with -d, choose one or other"
+ exit 1
+fi
+
+
if [[ $host && $host != default ]]; then
host_tag="tag:$host,"
fi