diff options
author | David Cantrell <dcantrell@redhat.com> | 2007-05-14 19:00:04 +0000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2007-05-14 19:00:04 +0000 |
commit | b7ecd1e6f929f76db9687bec66d310b01427565b (patch) | |
tree | d765600b3024f2ba3e3d303df1904e575be56b1d /command-stubs/pump-stub | |
parent | 5c62514a0abdc043155bcdf9d4432262284072e8 (diff) | |
download | anaconda-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-x | command-stubs/pump-stub | 36 |
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) |