summaryrefslogtreecommitdiffstats
path: root/loader/net.c
diff options
context:
space:
mode:
authorKarsten Hopp <karsten@redhat.de>2001-06-20 21:15:47 +0000
committerKarsten Hopp <karsten@redhat.de>2001-06-20 21:15:47 +0000
commit2f5300e6a8d41ec45fc38806d61947518ce32663 (patch)
tree9870381d7ad2ee7f4aafa2a6c2f17969e36e0cf6 /loader/net.c
parentfa6cb866187230ce67cfa3147392667264c69f27 (diff)
downloadanaconda-2f5300e6a8d41ec45fc38806d61947518ce32663.tar.gz
anaconda-2f5300e6a8d41ec45fc38806d61947518ce32663.tar.xz
anaconda-2f5300e6a8d41ec45fc38806d61947518ce32663.zip
revert S390 changes
Diffstat (limited to 'loader/net.c')
-rw-r--r--loader/net.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/loader/net.c b/loader/net.c
index c147ba00b..d1bdff79b 100644
--- a/loader/net.c
+++ b/loader/net.c
@@ -296,9 +296,7 @@ int readNetConfig(char * device, struct networkDeviceConfig * cfg, int flags) {
struct in_addr addr;
char dhcpChoice;
char * chptr;
- char * env;
-#if !defined(__s390__) && !defined(__s390x__)
text = newtTextboxReflowed(-1, -1,
_("Please enter the IP configuration for this machine. Each "
"item should be entered as an IP address in dotted-decimal "
@@ -439,49 +437,6 @@ int readNetConfig(char * device, struct networkDeviceConfig * cfg, int flags) {
}
} while (i != 2);
-#else /* s390 now */
-
- /* quick and dirty hack by opaukstadt@millenux.com for s390 */
- /* ctc stores remoteip in broadcast-field until pump.h is changed */
- memset(&newCfg, 0, sizeof(newCfg));
- strcpy(newCfg.dev.device, device);
- newCfg.isDynamic = 0;
- env = getenv("IPADDR");
- if (env) {
- inet_aton(env, &newCfg.dev.ip);
- newCfg.dev.set |= PUMP_INTFINFO_HAS_IP;
- }
- env = getenv("NETMASK");
- if (env) {
- inet_aton(env, &newCfg.dev.netmask);
- newCfg.dev.set |= PUMP_INTFINFO_HAS_NETMASK;
- }
- env = getenv("GATEWAY");
- if (env) {
- inet_aton(env, &newCfg.dev.gateway);
- newCfg.dev.set |= PUMP_NETINFO_HAS_GATEWAY;
- }
- env = getenv("NETWORK");
- if (env) {
- inet_aton(env, &newCfg.dev.network);
- newCfg.dev.set |= PUMP_INTFINFO_HAS_NETWORK;
- }
- if (!strncmp(newCfg.dev.device, "ctc", 3)) {
- env = getenv("REMIP");
- if (env) {
- inet_aton(env, &newCfg.dev.broadcast);
- newCfg.dev.set |= PUMP_INTFINFO_HAS_BROADCAST;
- }
- } else {
- env = getenv("BROADCAST");
- if (env) {
- inet_aton(env, &newCfg.dev.broadcast);
- newCfg.dev.set |= PUMP_INTFINFO_HAS_BROADCAST;
- }
- }
-#endif
-
-
#ifdef __STANDALONE__
if (!newCfg.isDynamic)
#endif
@@ -504,9 +459,7 @@ int readNetConfig(char * device, struct networkDeviceConfig * cfg, int flags) {
}
}
-#if !defined(__s390__) && !defined(__s390__)
newtPopWindow();
-#endif
if (!FL_TESTING(flags)) {
configureNetwork(cfg);