Project

General

Profile

« Previous | Next » 

Revision ea20169a

Added by Jim Pingle over 10 years ago

Use a better method of finding disks for SMART.
Old code was inaccurate and also listed entries that were symlinks to other disks

View differences:

usr/local/www/diag_smart.php
276 276
	// Default page, prints the forms to view info, test, etc...
277 277
	default:
278 278
	{
279
		// Get all AD* and DA* (IDE and SCSI) devices currently installed and stores them in the $devs array
280
		exec("ls /dev | grep '^\(ad\|da\|ada\)[0-9]\{1,2\}$'", $devs);
279
		$devs = get_smart_drive_list();
281 280
		?>
282 281
		<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="default page">
283 282
			<tr>

Also available in: Unified diff