summaryrefslogtreecommitdiffstats
path: root/network.py
diff options
context:
space:
mode:
authorbfox <bfox>2001-08-02 16:41:00 +0000
committerbfox <bfox>2001-08-02 16:41:00 +0000
commit8ffcd020e3724390400e13fd26dc8a1cc79474e4 (patch)
tree6a82aa56dbc192c8e28fd424d865320ec5bb6f48 /network.py
parent1f8224e105c5b39540f46a97c78ab9bba67e774c (diff)
downloadanaconda-8ffcd020e3724390400e13fd26dc8a1cc79474e4.tar.gz
anaconda-8ffcd020e3724390400e13fd26dc8a1cc79474e4.tar.xz
anaconda-8ffcd020e3724390400e13fd26dc8a1cc79474e4.zip
added an invisible step to allow the network screen to be skipped if no network devices are present
Diffstat (limited to 'network.py')
-rw-r--r--network.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/network.py b/network.py
index 6d4253a47..9562b4c44 100644
--- a/network.py
+++ b/network.py
@@ -4,6 +4,7 @@
# Matt Wilson <ewt@redhat.com>
# Erik Troan <ewt@redhat.com>
# Mike Fulbright <msf@redhat.com>
+# Brent Fox <bfox@redhat.com>
#
# Copyright 2001 Red Hat, Inc.
#
@@ -22,6 +23,11 @@ import socket
import os
from log import log
+def networkDeviceCheck(network, dispatch):
+ devs = network.available()
+ if not devs:
+ dispatch.skipStep("network")
+
class NetworkDevice(SimpleConfigFile):
def __str__(self):
s = ""