Subversion Repositories ALCASAR

Rev

Rev 3076 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3076 Rev 3173
Line 24... Line 24...
24
if (!empty($open_port)) {
24
if (!empty($open_port)) {
25
	$find_key="true";
25
	$find_key="true";
26
	$vendor=exec("udevadm info -n $openned_ports[0] | grep 'MODEL=' | cut -d'=' -f2"); 
26
	$vendor=exec("udevadm info -n $openned_ports[0] | grep 'MODEL=' | cut -d'=' -f2"); 
27
	$model=exec("udevadm info -n $openned_ports[0] | grep 'MODEL_FROM_DATABASE=' | cut -d'=' -f2");
27
	$model=exec("udevadm info -n $openned_ports[0] | grep 'MODEL_FROM_DATABASE=' | cut -d'=' -f2");
28
	$gammu_smsd_port=exec("cat /etc/gammu_smsd_conf| grep '^port\s\?=' | cut -d ' ' -f3"); // Gammu_smsd listen port 
28
	$gammu_smsd_port=exec("cat /etc/gammu_smsd_conf| grep '^port\s\?=' | cut -d ' ' -f3"); // Gammu_smsd listen port 
29
	foreach($openned_ports as $row) {
29
	foreach ($openned_ports as $row) {
30
		if ( "$row" == "$gammu_smsd_port" ) { // is gammu listen on an openned port ?
30
		if ( "$row" == "$gammu_smsd_port" ) { // is gammu listen on an openned port ?
31
			$listen_on_right_port="true";
31
			$listen_on_right_port="true";
32
		}
32
		}
33
	}
33
	}
34
}	
34
}