Skip to content

Commit

Permalink
Merge pull request #72 from xtr4nge/develop
Browse files Browse the repository at this point in the history
v2.1.1
  • Loading branch information
xtr4nge committed Dec 21, 2014
2 parents 6d160fb + cbc88e9 commit 710b200
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion FruityWifi/www/config/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?
$version="v2.1";
$version="v2.1.1";
$regex=1; // 1 (on) | 0 (off) >> web interface input validation.
$regex_extra=" _-.[]*"; // extra characters allowed (input validation).
$log_path="/usr/share/fruitywifi/logs";
Expand Down
14 changes: 7 additions & 7 deletions FruityWifi/www/scripts/status_wireless.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
//unmanaged-devices=mac:<realmac>;interface-name:wlan2
//macchanger --show wlan0 |grep "Permanent"

$exec = "macchanger --show eth0 |grep 'Permanent'";
$exec = "macchanger --show $io_in_iface |grep 'Permanent'";
//$output = exec_fruitywifi($exec);
exec($exec, $output);
$mac = explode(" ", $output[0]);
Expand All @@ -365,7 +365,7 @@

$exec = "sed -i '/unmanaged/d' /etc/NetworkManager/NetworkManager.conf";
exec_fruitywifi($exec);
$exec = "sed -i '/[keyfile]/d' /etc/NetworkManager/NetworkManager.conf";
$exec = "sed -i '/\[keyfile\]/d' /etc/NetworkManager/NetworkManager.conf";
exec_fruitywifi($exec);

if ($ispresent == "") {
Expand Down Expand Up @@ -427,7 +427,7 @@

$exec = "$bin_hostapd $mod_path/includes/conf/hostapd-secure.conf >> $mod_logs &";
} else {
$exec = "/usr/sbin/hostapd -P /var/run/hostapd-phy0 -B /usr/share/FruityWifi/conf/hostapd-secure.conf";
$exec = "/usr/sbin/hostapd -P /var/run/hostapd-phy0 -B /usr/share/fruitywifi/conf/hostapd-secure.conf";
}

} else {
Expand Down Expand Up @@ -456,7 +456,7 @@

$exec = "$bin_hostapd $mod_path/includes/conf/hostapd.conf >> $mod_logs &";
} else {
$exec = "/usr/sbin/hostapd -P /var/run/hostapd-phy0 -B /usr/share/FruityWifi/conf/hostapd.conf";
$exec = "/usr/sbin/hostapd -P /var/run/hostapd-phy0 -B /usr/share/fruitywifi/conf/hostapd.conf";
}

}
Expand Down Expand Up @@ -489,7 +489,7 @@
// REMOVE lines from NetworkManager
$exec = "sed -i '/unmanaged/d' /etc/NetworkManager/NetworkManager.conf";
exec_fruitywifi($exec);
$exec = "sed -i '/[keyfile]/d' /etc/NetworkMxanager/NetworkManager.conf";
$exec = "sed -i '/\[keyfile\]/d' /etc/NetworkManager/NetworkManager.conf";
exec_fruitywifi($exec);

$exec = "$bin_killall hostapd";
Expand Down Expand Up @@ -602,7 +602,7 @@

$exec = "$bin_hostapd $mod_path/includes/conf/hostapd-secure.conf >> $mod_logs &";
} else {
$exec = "/usr/sbin/hostapd -P /var/run/hostapd-phy0 -B /usr/share/FruityWifi/conf/hostapd-secure.conf";
$exec = "/usr/sbin/hostapd -P /var/run/hostapd-phy0 -B /usr/share/fruitywifi/conf/hostapd-secure.conf";
}

} else {
Expand Down Expand Up @@ -631,7 +631,7 @@

$exec = "$bin_hostapd $mod_path/includes/conf/hostapd.conf >> $mod_logs &";
} else {
$exec = "/usr/sbin/hostapd -P /var/run/hostapd-phy0 -B /usr/share/FruityWifi/conf/hostapd.conf";
$exec = "/usr/sbin/hostapd -P /var/run/hostapd-phy0 -B /usr/share/fruitywifi/conf/hostapd.conf";
}

}
Expand Down

0 comments on commit 710b200

Please sign in to comment.