From 0c77c06c7cd21c44c2bf8e30695c00ab6651d1ac Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Fri, 23 Mar 2001 22:34:27 +0000 Subject: only set ONBOOT=yes on eth0 --- loader/net.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'loader/net.c') 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 { -- cgit