diff options
author | Matt Wilson <msw@redhat.com> | 2001-03-23 22:34:27 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-03-23 22:34:27 +0000 |
commit | 0c77c06c7cd21c44c2bf8e30695c00ab6651d1ac (patch) | |
tree | 87ea8a698363b2e13a8dafeef00299c31f467482 /loader/net.c | |
parent | 4b2b844c1e3aa8e60f3ec73260309d6c14890ac2 (diff) | |
download | anaconda-0c77c06c7cd21c44c2bf8e30695c00ab6651d1ac.tar.gz anaconda-0c77c06c7cd21c44c2bf8e30695c00ab6651d1ac.tar.xz anaconda-0c77c06c7cd21c44c2bf8e30695c00ab6651d1ac.zip |
only set ONBOOT=yes on eth0
Diffstat (limited to 'loader/net.c')
-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 { |