diff --git a/net/ifup.c b/net/ifup.c index f22afc9..30ac3f5 100644 --- a/net/ifup.c +++ b/net/ifup.c @@ -96,6 +96,9 @@ goto out; ip = getenv("ip"); + if (!ip) + ip = ""; + if (!strcmp(ip, "dhcp")) { ret = run_command("dhcp"); if (ret)