]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - pptp/patches/pptp-1.7.2-pptpsetup-encrypt.patch
Change file layout of the makefiles.
[people/arne_f/ipfire-3.x.git] / pptp / patches / pptp-1.7.2-pptpsetup-encrypt.patch
1 --- a/pptpsetup 2009-06-01 14:30:36.000000000 +0100
2 +++ b/pptpsetup 2009-06-01 14:36:39.000000000 +0100
3 @@ -43,12 +43,13 @@
4 sub create {
5 my $TUNNEL = shift;
6
7 - # system checking
8 - &Check_MPPE_in_kernel
9 - or die "$0: couldn't find MPPE support in kernel.\n";
10 -
11 - &Check_MPPE_in_pppd
12 - or die "$0: couldn't find MPPE support in pppd.\n";
13 + # if encryption is requested, check for support in kernel and pppd
14 + if ( $ENCRYPT ) {
15 + &Check_MPPE_in_kernel
16 + or die "$0: couldn't find MPPE support in kernel.\n";
17 + &Check_MPPE_in_pppd
18 + or die "$0: couldn't find MPPE support in pppd.\n";
19 + }
20
21 # input validation
22 ($TUNNEL) = $TUNNEL =~ m{^(\w+)$}