From: Michael Brown Date: Wed, 26 Apr 2006 00:15:41 +0000 (+0000) Subject: Much safer to use a TAP device statically allocated with tunctl. X-Git-Tag: fredrik-command-line-merge-1~229 X-Git-Url: http://git.etherboot.org/people/mdeck/gpxe.git/commitdiff_plain/c378213387fe86958b0f0b3a083aca964bb9efad?hp=297ae0f8d59f7a76c0e36843fb3a239722ee381a Much safer to use a TAP device statically allocated with tunctl. --- 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