Projet

Général

Profil

« Précédent | Suivant » 

Révision 25e2281c

Ajouté par jim-p il y a presque 10 ans

Use the glob on 2.2 now as well for listing PPP serial devices.
Rather than doing auto-detection, fall back to a glob for now when listing potential PPP serial devices. This will allow us to push ticket #2433 back to 2.2 with a more proper long-term fix for the auto-detection.

Voir les différences:

usr/local/www/interfaces_ppps_edit.php
435 435
				$selected_ports = explode(',',$pconfig['interfaces']);
436 436
				if (!is_dir("/var/spool/lock"))
437 437
					mwexec("/bin/mkdir -p /var/spool/lock");
438
				$serialports = pfSense_get_modem_devices();
438
				// $serialports = pfSense_get_modem_devices();
439
				$serialports = glob("/dev/cua?[0-9]{,.[0-9]}", GLOB_BRACE);
439 440
				$serport_count = 0;
440 441
				foreach ($serialports as $port) {
441 442
					$serport_count++;

Formats disponibles : Unified diff