#! /usr/bin/perl -w
#
# System startup script for tinc
-# $Id: init.d,v 1.10 2000/05/21 22:04:56 guus Exp $
+# $Id: init.d,v 1.12 2000/05/21 22:21:38 guus Exp $
#
# Based on Lubomir Bulej's Redhat init script.
#
warn "tinc: Invalid argument to VpnMask\n";
return 0;
}
- if(!defined($VPNMASK) {
+ if(!defined($VPNMASK)) {
warn "tinc: No VpnMask specified. Using default 255.255.0.0\n";
$VPNMASK="255.255.0.0";
}
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");
}