This commit is contained in:
PaulVua
2025-01-09 21:31:27 +01:00
parent 05c54cf6d0
commit e3a517b487
2 changed files with 26 additions and 25 deletions

View File

@@ -226,8 +226,8 @@ if ($type == "wifi_connect") {
echo "You will be disconnected. If connection is successfull you can find the device on your local network.";
$script_path = __DIR__ . '/connexion.sh';
$log_file = __DIR__ . '/logs/app.log';
$script_path = '/var/www/nebuleair_pro_4g/connexion.sh';
$log_file = '/var/www/nebuleair_pro_4g/logs/app.log';
shell_exec("$script_path $SSID $PASS >> $log_file 2>&1 &");
#$output = shell_exec('sudo nmcli connection down Hotspot');
@@ -301,4 +301,4 @@ if ($type == "wifi_scan_old") {
echo $json_data;
}
}