[pve-devel] [RFC installer 3/7] get DHCP leases on all interfaces

Fabian Grünbichler f.gruenbichler at proxmox.com
Tue Mar 7 16:03:00 CET 2017


instead of calling the networking init script

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 unconfigured.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/unconfigured.sh b/unconfigured.sh
index 1066027..ad5d20a 100755
--- a/unconfigured.sh
+++ b/unconfigured.sh
@@ -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
-- 
2.1.4





More information about the pve-devel mailing list