dhclient - Fix bug last commit
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 3 Jun 2017 22:05:18 +0000 (15:05 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 3 Jun 2017 22:05:18 +0000 (15:05 -0700)
* Missing 'fi' in script prevented it from working properly.

sbin/dhclient/dhclient-script

index 5d6c3a4..f13226c 100644 (file)
@@ -26,6 +26,7 @@ delete_old_address() {
        if [ -n "$old_ip_address" ]; then
                ifconfig $interface inet $old_ip_address delete
                #route delete "$old_ip_address" 127.0.0.1 >/dev/null 2>&1
+       fi
        if [ -n "$old_classless_routes" ]; then
                fill_classless_routes "$old_classless_routes"
                set $classless_routes