process_release(interface->udhcpc_process);
}
+ if (!up) {
+ rc = process_run_simple(interface, pb_system_apps.ip,
+ "address", "flush", "dev", interface->name,
+ NULL);
+ if (rc)
+ pb_log("failed to flush addresses from interface %s\n",
+ interface->name);
+ }
+
rc = process_run_simple(interface, pb_system_apps.ip,
"link", "set", interface->name, statestr, NULL);
if (rc) {
const char *argv[] = {
pb_system_apps.udhcpc,
"-R",
- "-n",
+ "-f",
"-O", "pxeconffile",
"-O", "pxepathprefix",
"-p", pidfile,