Browse Source

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

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
c378213387
1 changed files with 0 additions and 21 deletions
  1. 0
    21
      contrib/bochs/ifup.tun

+ 0
- 21
contrib/bochs/ifup.tun View File

1
-#!/bin/sh
2
-
3
-SCRIPT=$0
4
-INTERFACE=$1
5
-
6
-if [ `id -u` != 0 ]; then
7
-    echo ""
8
-    echo "Enter root password for configuring network interface $INTERFACE"
9
-    echo "(To avoid this prompt, make the script $SCRIPT setuid-root)"
10
-    /bin/su -c "$SCRIPT $INTERFACE" || exit 1
11
-    exit 0
12
-fi
13
-
14
-/sbin/ifconfig $INTERFACE 10.254.254.2 netmask 255.255.255.252
15
-
16
-# Force dhcpd to notice the new network interface
17
-if [ -x /etc/init.d/dhcpd ]; then
18
-  /etc/init.d/dhcpd reload # Redhat
19
-elif [ -x /etc/init.d/dhcp ]; then
20
-  /etc/init.d/dhcp restart # Debian
21
-fi

Loading…
Cancel
Save