summaryrefslogtreecommitdiffstats
path: root/loader2/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'loader2/net.c')
-rw-r--r--loader2/net.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/loader2/net.c b/loader2/net.c
index 0e4fc1925..d8c6d1bcb 100644
--- a/loader2/net.c
+++ b/loader2/net.c
@@ -314,7 +314,7 @@ int readNetConfig(char * device, struct networkDeviceConfig * cfg, int flags) {
if (!cfg->noDns)
writeResolvConf(cfg);
- return 0;
+ return LOADER_NOOP;
}
text = newtTextboxReflowed(-1, -1,
@@ -489,12 +489,7 @@ int readNetConfig(char * device, struct networkDeviceConfig * cfg, int flags) {
writeResolvConf(cfg);
}
- /* JKFIXME: this is a hack */
-#if !defined(__s390__) && !defined(__s390x__)
return 0;
-#else
- return LOADER_NOOP;
-#endif
}
int configureNetwork(struct networkDeviceConfig * dev) {
@@ -803,7 +798,7 @@ int kickstartNetworkUp(struct knownDevices * kd,
setupNetworkDeviceConfig(netCfgPtr, loaderData, flags);
rc = readNetConfig(loaderData->netDev, netCfgPtr, flags);
- if (rc) {
+ if ((rc == LOADER_BACK) || (rc == LOADER_ERROR)) {
logMessage("unable to setup networking");
return -1;
}