Fixed last typo. Init.d now uses ifconfig command to set both the tap's IP
address as well as the correct route. Furthermore, if no VpnMask is given, a default of 255.255.0.0 is chosen and a warning issued.
This commit is contained in:
parent
2ad4f1cc5b
commit
73b3e7ce03
1 changed files with 2 additions and 2 deletions
4
debian/init.d
vendored
4
debian/init.d
vendored
|
@ -1,7 +1,7 @@
|
|||
#! /usr/bin/perl -w
|
||||
#
|
||||
# System startup script for tinc
|
||||
# $Id: init.d,v 1.11 2000/05/21 22:08:21 guus Exp $
|
||||
# $Id: init.d,v 1.12 2000/05/21 22:21:38 guus Exp $
|
||||
#
|
||||
# Based on Lubomir Bulej's Redhat init script.
|
||||
#
|
||||
|
@ -129,7 +129,7 @@ sub vpn_start {
|
|||
|
||||
system("insmod ethertap -s --name=\"ethertap$NUM\" unit=\"$NUM\" >/dev/null");
|
||||
system("ifconfig $DEV hw ether $MAC");
|
||||
system("ifconfig $DEV $ADR netmask $MSK broadcast $BRD -arp");
|
||||
system("ifconfig $DEV $ADR netmask $VPNMASK broadcast $BRD -arp");
|
||||
system("start-stop-daemon --start --quiet --pidfile /var/run/$NAME.$_[0].pid --exec $DAEMON -- -n $_[0] $EXTRA");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue