2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-22 09:31:51 +00:00

Much safer to use a TAP device statically allocated with tunctl.

This commit is contained in:
Michael Brown 2006-04-26 00:15:41 +00:00
parent 297ae0f8d5
commit c378213387

View File

@ -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