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") {
|
||||
setDMRNetwork("DMRplus");
|
||||
exec( "sudo cp ".MMDVMINIPATH."/DMRPLUS.ini ".MMDVMINIPATH."/".MMDVMINIFILENAME );
|
||||
exec( "sudo killall MMDVMHost");
|
||||
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 ");
|
||||
exec( REBOOTMMDVM );
|
||||
}
|
||||
if ($_GET['network'] == "BRANDMEISTER") {
|
||||
setDMRNetwork("BrandMeister");
|
||||
exec( "sudo cp ".MMDVMINIPATH."/BRANDMEISTER.ini ".MMDVMINIPATH."/".MMDVMINIFILENAME );
|
||||
exec( "sudo killall MMDVMHost");
|
||||
sleep(1);
|
||||
exec( "sudo ".MMDVMHOSTPATH."/MMDVMHost ".MMDVMINIPATH."/".MMDVMINIFILENAME." > /dev/null 2>&1 &" );
|
||||
// exec( "sudo killall MMDVMHost && sudo ".MMDVMHOSTPATH."/MMDVMHost ".MMDVMINIPATH."/".MMDVMINIFILENAME." &" );
|
||||
exec( REBOOTMMDVM );
|
||||
}
|
||||
?>
|
||||
<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