summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/interfaces.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 0bcfd16..a70919d 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -275,6 +275,9 @@ function interfaces_optional_configure_if($opti) {
/* if user has selected DHCP type then act accordingly */
if($optcfg['ipaddr'] == "dhcp") {
interfaces_opt_dhcp_configure("opt{$opti}");
+ } elseif ($optcfg['ipaddr'] == "none") {
+ /* hidden trick for IP-less interfaces */
+ mwexec("/sbin/ifconfig " . escapeshellarg($optcfg['if']) . " up");
} else {
mwexec("/sbin/ifconfig " . escapeshellarg($optcfg['if']) . " " .
escapeshellarg($optcfg['ipaddr'] . "/" . $optcfg['subnet']));
OpenPOWER on IntegriCloud