|
@@ -1,21 +0,0 @@
|
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
|