Skip to content

Commit

Permalink
minor fix [mana]
Browse files Browse the repository at this point in the history
  • Loading branch information
xtr4nge committed Jan 6, 2019
1 parent dfd10b3 commit c339e73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@
$mode_name = "Hostapd-Mana";
$log_ap = "/usr/share/fruitywifi/logs/mana.log";

$exec = "sudo /usr/share/fruitywifi/www/modules/mana/includes/hostapd_cli -p /var/run/hostapd karma_get_state | grep 'ENABLE'";
$exec = "sudo /usr/share/fruitywifi/www/modules/mana/includes/hostapd_cli -p /var/run/hostapd mana_get_state | tail -1 | grep 'MANA EN'";
$ismoduleup = exec_fruitywifi("$exec");
if ($ismoduleup[0] == "KARMA ENABLED") {
if ($ismoduleup[0] == "MANA ENABLED") {
echo "&nbsp;&nbsp;&nbsp; Mana <font color='lime'><b>enabled</b></font>.&nbsp; | <a href='includes/module_action.php?worker=mana&action=stop&page=module'><b>stop</b></a><br>";
} else {
echo "&nbsp;&nbsp;&nbsp; Mana <font color='red'><b>disabled</b></font>. | <a href='includes/module_action.php?worker=mana&action=start&page=module'><b>start</b></a><br>";
Expand Down

0 comments on commit c339e73

Please sign in to comment.