Revision 974fb32c
Added by Phillip Davis over 11 years ago
etc/rc.initial.setlanip | ||
---|---|---|
306 | 306 |
$subnet = gen_subnet($intip, $intbits); |
307 | 307 |
} |
308 | 308 |
do { |
309 |
echo "\n" . sprintf(gettext("Enter the new %s %s gateway address. Press <ENTER> for none:"),
|
|
310 |
$upperifname, $label_IPvX) . "\n> ";
|
|
309 |
echo "\n" . sprintf(gettext("For a WAN, enter the new %s %s upstream gateway address."), $upperifname, $label_IPvX) . "\n" .
|
|
310 |
gettext("For a LAN, press <ENTER> for none:") . "\n> ";
|
|
311 | 311 |
$gwip = chop(fgets($fp)); |
312 | 312 |
$is_ipaddr = ($version === 6) ? is_ipaddrv6($gwip) : is_ipaddrv4($gwip); |
313 | 313 |
$is_in_subnet = $is_ipaddr && ip_in_subnet($gwip, $subnet . "/" . $intbits); |
Also available in: Unified diff
Enhance interface gateway data entry descriptions