diff options
| author | Roy Marples <roy@marples.name> | 2009-08-11 20:08:02 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-08-11 20:08:02 +0000 |
| commit | dbe767d8e4f8583e350dacede97215d93ca3d9db (patch) | |
| tree | 54a91468f83c80f37b83ada579adcd2950ab7616 | |
| parent | 6957b635c8f711b60dfc26fbc2e21b745dfee43b (diff) | |
| download | dhcpcd-dbe767d8e4f8583e350dacede97215d93ca3d9db.tar.xz | |
Fix persistent option.
| -rw-r--r-- | configure.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/configure.c b/configure.c index 3a32e0da..e341191c 100644 --- a/configure.c +++ b/configure.c @@ -654,10 +654,12 @@ configure(struct interface *iface) sort_interfaces(); if (dhcp == NULL) { - build_routes(); - if (iface->addr.s_addr != 0) - delete_address(iface); - run_script(iface); + if (!(ifo->options & DHCPCD_PERSISTENT)) { + build_routes(); + if (iface->addr.s_addr != 0) + delete_address(iface); + run_script(iface); + } return 0; } |
