summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorMichael Brown2006-04-26 02:15:41 +0200
committerMichael Brown2006-04-26 02:15:41 +0200
commitc378213387fe86958b0f0b3a083aca964bb9efad (patch)
tree0bb411ada513711af3cd4d0ecadcbffe9d404caf /contrib
parentUpdated to syntax required by latest bochs CVS. (diff)
downloadipxe-c378213387fe86958b0f0b3a083aca964bb9efad.tar.gz
ipxe-c378213387fe86958b0f0b3a083aca964bb9efad.tar.xz
ipxe-c378213387fe86958b0f0b3a083aca964bb9efad.zip
Much safer to use a TAP device statically allocated with tunctl.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/bochs/ifup.tun21
1 files changed, 0 insertions, 21 deletions
diff --git a/contrib/bochs/ifup.tun b/contrib/bochs/ifup.tun
deleted file mode 100755
index 8e2ede20..00000000
--- a/contrib/bochs/ifup.tun
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-
-SCRIPT=$0
-INTERFACE=$1
-
-if [ `id -u` != 0 ]; then
- echo ""
- echo "Enter root password for configuring network interface $INTERFACE"
- echo "(To avoid this prompt, make the script $SCRIPT setuid-root)"
- /bin/su -c "$SCRIPT $INTERFACE" || exit 1
- exit 0
-fi
-
-/sbin/ifconfig $INTERFACE 10.254.254.2 netmask 255.255.255.252
-
-# Force dhcpd to notice the new network interface
-if [ -x /etc/init.d/dhcpd ]; then
- /etc/init.d/dhcpd reload # Redhat
-elif [ -x /etc/init.d/dhcp ]; then
- /etc/init.d/dhcp restart # Debian
-fi