summaryrefslogtreecommitdiffstats
path: root/command-stubs/pump-stub
diff options
context:
space:
mode:
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)