Revision d632dd5a
Added by Renato Botelho over 12 years ago
etc/rc.initial.setlanip | ||
---|---|---|
258 | 258 |
$upperifname, $label_IPvX) . "\n> "; |
259 | 259 |
$intip = chop(fgets($fp)); |
260 | 260 |
$is_ipaddr = ($version === 6) ? is_ipaddrv6($intip) : is_ipaddrv4($intip); |
261 |
} while (!($is_ipaddr || $intip == '')); |
|
261 |
if ($is_ipaddr && is_ipaddr_configured($intip, $interface, true)) { |
|
262 |
$ip_conflict = true; |
|
263 |
echo gettext("This IP address conflicts with another interface or a VIP") . "\n"; |
|
264 |
} else |
|
265 |
$ip_conflict = false; |
|
266 |
} while (($ip_conflict === true) || !($is_ipaddr || $intip == '')); |
|
262 | 267 |
if ($intip != '') { |
263 | 268 |
echo "\n" . sprintf(gettext("Subnet masks are entered as bit counts (as in CIDR notation) in %s."), |
264 | 269 |
$g['product_name']) . "\n"; |
Also available in: Unified diff
Check if IP is already configured on console setup