move down after if [ -n "$wol_ip" -a .. ?