Removes presumptions on MMDVMHost restart method.
Removes presumptions on MMDVMHost restart method, uses the already defined 'REBOOTMMDVM' instead.
This commit is contained in:
parent
d1b9bd7e7d
commit
5052883db2
1 changed files with 2 additions and 9 deletions
|
@ -56,19 +56,12 @@ include "../include/sysinfo.php";
|
||||||
if ($_GET['network'] == "DMRPLUS") {
|
if ($_GET['network'] == "DMRPLUS") {
|
||||||
setDMRNetwork("DMRplus");
|
setDMRNetwork("DMRplus");
|
||||||
exec( "sudo cp ".MMDVMINIPATH."/DMRPLUS.ini ".MMDVMINIPATH."/".MMDVMINIFILENAME );
|
exec( "sudo cp ".MMDVMINIPATH."/DMRPLUS.ini ".MMDVMINIPATH."/".MMDVMINIFILENAME );
|
||||||
exec( "sudo killall MMDVMHost");
|
exec( REBOOTMMDVM );
|
||||||
sleep(1);
|
|
||||||
exec( "sudo ".MMDVMHOSTPATH."/MMDVMHost ".MMDVMINIPATH."/".MMDVMINIFILENAME." > /dev/null 2>&1 &" );
|
|
||||||
// exec( "sudo killall MMDVMHost && sudo ".MMDVMHOSTPATH."/MMDVMHost ".MMDVMINIPATH."/".MMDVMINIFILENAME." &");
|
|
||||||
// exec( "sudo /etc/init.d/start_mmdvm restart ");
|
|
||||||
}
|
}
|
||||||
if ($_GET['network'] == "BRANDMEISTER") {
|
if ($_GET['network'] == "BRANDMEISTER") {
|
||||||
setDMRNetwork("BrandMeister");
|
setDMRNetwork("BrandMeister");
|
||||||
exec( "sudo cp ".MMDVMINIPATH."/BRANDMEISTER.ini ".MMDVMINIPATH."/".MMDVMINIFILENAME );
|
exec( "sudo cp ".MMDVMINIPATH."/BRANDMEISTER.ini ".MMDVMINIPATH."/".MMDVMINIFILENAME );
|
||||||
exec( "sudo killall MMDVMHost");
|
exec( REBOOTMMDVM );
|
||||||
sleep(1);
|
|
||||||
exec( "sudo ".MMDVMHOSTPATH."/MMDVMHost ".MMDVMINIPATH."/".MMDVMINIFILENAME." > /dev/null 2>&1 &" );
|
|
||||||
// exec( "sudo killall MMDVMHost && sudo ".MMDVMHOSTPATH."/MMDVMHost ".MMDVMINIPATH."/".MMDVMINIFILENAME." &" );
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="alert alert-info" role="alert">Switching network to <b><?php echo getDMRNetwork2() ?></b><br>Restarting in new selected network in progress</div>
|
<div class="alert alert-info" role="alert">Switching network to <b><?php echo getDMRNetwork2() ?></b><br>Restarting in new selected network in progress</div>
|
||||||
|
|
Loading…
Reference in a new issue