]> git.proxmox.com Git - pve-installer.git/blobdiff - unconfigured.sh
implement previous button
[pve-installer.git] / unconfigured.sh
index 1066027c7f3f917bb277af484820598beb045df6..ac8fa4542f2f071da6f64c124063c203522bc84a 100755 (executable)
@@ -79,8 +79,8 @@ export PREVLEVEL=N
 hostname proxmox
 
 # try to get ip config with dhcp
-echo -n "Detecting network settings... "
-/etc/init.d/networking start >/dev/tty2 2>&1
+echo -n "Attempting to get DHCP leases... "
+dhclient -v
 echo "done"
 
 xinit -- -dpi 96 >/dev/tty2 2>&1
@@ -95,6 +95,7 @@ fi
 
 echo "Installation done, rebooting... "
 #mdadm -S /dev/md0 >/dev/tty2 2>&1
+kill $(pidof dhclient) 2>&1 > /dev/null
 real_reboot
 
 # never reached