summaryrefslogtreecommitdiffstats
path: root/command-stubs/pump-stub
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2007-05-14 19:00:04 +0000
committerDavid Cantrell <dcantrell@redhat.com>2007-05-14 19:00:04 +0000
commitb7ecd1e6f929f76db9687bec66d310b01427565b (patch)
treed765600b3024f2ba3e3d303df1904e575be56b1d /command-stubs/pump-stub
parent5c62514a0abdc043155bcdf9d4432262284072e8 (diff)
downloadanaconda-b7ecd1e6f929f76db9687bec66d310b01427565b.tar.gz
anaconda-b7ecd1e6f929f76db9687bec66d310b01427565b.tar.xz
anaconda-b7ecd1e6f929f76db9687bec66d310b01427565b.zip
* command-stubs/pump-stub: Removed (#239427).
* command-stubs/dhcpclient-stub: Wrote new command to provide an IPv4 and IPv6 dhcp/auto client at the command line in rescue mode (#239427). * scripts/upd-instroot: Install dhcpclient-stub, symlink /usr/bin/pump to /usr/bin/dhcpclient (#239427).
Diffstat (limited to 'command-stubs/pump-stub')
-rwxr-xr-xcommand-stubs/pump-stub36
1 files changed, 0 insertions, 36 deletions
diff --git a/command-stubs/pump-stub b/command-stubs/pump-stub
deleted file mode 100755
index 63f093be6..000000000
--- a/command-stubs/pump-stub
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/python
-
-import os
-import sys
-
-# for testing
-if (os.path.exists('isys')):
- sys.path.append('isys')
-
-sys.path.append('/usr/lib/anaconda')
-
-import isys
-from sys import argv
-
-def usage():
- print "usage: pump [-i device]"
- sys.exit(1)
-
-iface = "eth0"
-
-argv = argv[1:]
-while (argv):
- if argv[0] == "-i":
- if len(argv) < 2: usage()
- iface = argv[1]
- argv = argv[2:]
- else:
- usage()
-
-ns = isys.pumpNetDevice(iface, None)
-if ns:
- f = open("/etc/resolv.conf", "w")
- f.write("nameserver %s\n" % ns)
- f.close()
-
-sys.exit(0)