User Tools

Site Tools


uphp:functions:nvram_restore

nvram_restore

WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0

Restore the contents of NVRAM from a file

Description

int nvram_restore ( string $filename )

Parameter

$filename: Full path and file name to restore from

Return Values

Integer number of bytes restored, or 0 if unsuccessful

Example

<?
  $res=nvram_restore("/mybackup.dat");
  if ($res > 0) {
    print("NVRAM Restore complete. File Size: ".$res);
  } else {
    print("Restore failed.");
  }
?>

See Also

nvram_backup() - Backup the contents of NVRAM to a file on the SD Card

uphp/functions/nvram_restore.txt · Last modified: 2021/09/13 05:57 (external edit)