update
This commit is contained in:
@@ -343,6 +343,13 @@ if ($type == "sara_ping") {
|
||||
echo $output;
|
||||
}
|
||||
|
||||
if ($type == "sara_psd_setup") {
|
||||
$command = 'sudo /usr/bin/python3 /var/www/nebuleair_pro_4g/SARA/R5/setPDP.py';
|
||||
$output = shell_exec($command);
|
||||
echo $output;
|
||||
}
|
||||
|
||||
|
||||
if ($type == "git_pull") {
|
||||
$command = 'sudo git pull';
|
||||
$output = shell_exec($command);
|
||||
@@ -656,6 +663,20 @@ if ($type == "sara_connectNetwork") {
|
||||
echo $output;
|
||||
|
||||
|
||||
}
|
||||
|
||||
#Setup Hostnmae
|
||||
if ($type == "sara_setupHostname") {
|
||||
$port=$_GET['port'];
|
||||
$server_hostname=$_GET['networkID'];
|
||||
$profileID=$_GET['profileID'];
|
||||
|
||||
//echo "connecting to network... please wait...";
|
||||
$command = 'sudo /usr/bin/python3 /var/www/nebuleair_pro_4g/SARA/sara_setURL.py ' . $port . ' ' . $server_hostname . ' ' . $profileID;
|
||||
$output = shell_exec($command);
|
||||
echo $output;
|
||||
|
||||
|
||||
}
|
||||
|
||||
#SET THE URL for messaging (profile id 2)
|
||||
|
||||
Reference in New Issue
Block a user