Commit 9a5c2324 authored by Michael Burtscher's avatar Michael Burtscher Committed by Franco Fichtner

added tun0 interface (required for sixxs-aiccu)

This is a temporary solution to allow using sixxs-aiccu service without
manual code change until the aiccu service is correctly included in the
web interface.
parent 7377f855
...@@ -171,6 +171,19 @@ if (isset($config['ppps']['ppp'])) { ...@@ -171,6 +171,19 @@ if (isset($config['ppps']['ppp'])) {
} }
} }
/* add tun0 interface (required for sixxs-aiccu) */
// This is a temporary solution to allow using sixxs-aiccu without manual code change
// until the aiccu service is correctly included in the web interface.
// 'mac' is used to add the description in the available network ports list
// (to avoid additional temporary code in the interface_assign_description function).
$tunfound = "";
exec("/sbin/ifconfig | /usr/bin/grep -c '^tun0'", $tunfound);
if (intval($tunfound[0]) > 0) {
$portlist['tun0'] = array();
$portlist['tun0']['if'] = 'tun0';
$portlist['tun0']['mac'] = 'sixxs-aiccu';
}
$ovpn_descrs = array(); $ovpn_descrs = array();
if (isset($config['openvpn'])) { if (isset($config['openvpn'])) {
if (isset($config['openvpn']['openvpn-server'])) { if (isset($config['openvpn']['openvpn-server'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment