Table of Contents

flash_status

FW >= 1295

The flash_status() function returns information about the onboard flash chip (if any)

Description

array flash_status ( )

Parameter

None

Return Values

array: Return array contains the following elements:

Key Value
state Flash status
percent Percentage completed
size Size of flash chip
mounted 0=not mounted, 1 = mounted
booted 1 = booted from Flash
state Description
0 Idle
1 Erasing (percent will contain the erased percentage)
2 Restoring (percent will contain the restored percentage)
3 Backing up (percent will contain the backed up percentage)
4 Error

Examples

<?
  $flash_status = flash_status();
  if ($flash_status['state']==1) {
    print("Erasing Flash - ".$flash_status['percent']."% completed");
  }
?>