diff options
-rw-r--r-- | loader/net.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/loader/net.c b/loader/net.c index d1bdff79b..fd5dcf710 100644 --- a/loader/net.c +++ b/loader/net.c @@ -502,9 +502,18 @@ int writeNetInfo(const char * fn, struct networkDeviceConfig * dev, if (i < kd->numKnown && kd->known[i].code == CODE_PCMCIA) fprintf(f, "ONBOOT=no\n"); else + { + /* only enable the first device we see + in loader mode */ + if (i < 0) #endif - fprintf(f, "ONBOOT=yes\n"); - + fprintf(f, "ONBOOT=yes\n"); +#ifndef __STANDALONE__ + else + fprintf(f, "ONBOOT=no\n"); + } +#endif + if (dev->isDynamic) { fprintf(f, "BOOTPROTO=dhcp\n"); } else { |