summaryrefslogtreecommitdiffstats
path: root/loader/net.c
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-02-09 21:22:57 +0000
committerBill Nottingham <notting@redhat.com>2000-02-09 21:22:57 +0000
commit1aa17dedd796748b0e7ab082673ab9730cae2ede (patch)
tree4d7d64dd566548e6ef73a59dddab602ad30c25b3 /loader/net.c
parentfaf63c73ae41872481d9e002cb966f850aed2a54 (diff)
downloadanaconda-1aa17dedd796748b0e7ab082673ab9730cae2ede.tar.gz
anaconda-1aa17dedd796748b0e7ab082673ab9730cae2ede.tar.xz
anaconda-1aa17dedd796748b0e7ab082673ab9730cae2ede.zip
fix for standalone netconfig - hitting 'back' causes bogus configurations to get writtenr0-7-9
Diffstat (limited to 'loader/net.c')
-rw-r--r--loader/net.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/loader/net.c b/loader/net.c
index e0318a595..634eac207 100644
--- a/loader/net.c
+++ b/loader/net.c
@@ -723,9 +723,10 @@ int main(int argc, const char **argv) {
exit(0);
}
if (!device) device="eth0";
- readNetConfig(device,netDev,0);
- snprintf(path,256,"/etc/sysconfig/network-scripts/ifcfg-%s",device);
- writeNetInfo(path,netDev);
+ if (readNetConfig(device,netDev,0) != LOADER_BACK) {
+ snprintf(path,256,"/etc/sysconfig/network-scripts/ifcfg-%s",device);
+ writeNetInfo(path,netDev);
+ }
newtFinished();
}
exit(0);