Skip to content

Commit

Permalink
Do not use dash in interface group name. Use pkg_ as prefix reserved …
Browse files Browse the repository at this point in the history
…for packages instead.
  • Loading branch information
doktornotor authored Jan 31, 2017
1 parent e58562f commit 7643536
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions security/pfSense-pkg-tinc/files/usr/local/pkg/tinc.inc
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function tinc_save() {
$_output = base64_decode($tincconf['tinc_up']) . "\n";
} else {
$_output = "ifconfig \$INTERFACE " . $tincconf['localip'] . " netmask " . $tincconf['vpnnetmask'] . "\n";
$_output .= "ifconfig \$INTERFACE group pkg-tinc\n";
$_output .= "ifconfig \$INTERFACE group pkg_tinc\n";
}
file_put_contents("{$configpath}/tinc-up", $_output);
chmod("{$configpath}/tinc-up", 0744);
Expand Down Expand Up @@ -166,7 +166,7 @@ function tinc_install() {
$ifgroupentry = array();
$ifgroupentry['members'] = '';
$ifgroupentry['descr'] = 'tinc mesh VPN interface group';
$ifgroupentry['ifname'] = 'pkg-tinc';
$ifgroupentry['ifname'] = 'pkg_tinc';
$a_ifgroups[] = $ifgroupentry;

/* XXX: Do not remove this. WTH?! */
Expand All @@ -188,7 +188,7 @@ function tinc_deinstall() {
$myid = -1;
$i = 0;
foreach ($a_ifgroups as $ifgroupentry) {
if ($ifgroupentry['ifname'] == 'pkg-tinc') {
if ($ifgroupentry['ifname'] == 'pkg_tinc') {
$myid = $i;
break;
}
Expand Down

0 comments on commit 7643536

Please sign in to comment.