User Tools

Site Tools


uphp:functions:nvram_restore

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:functions:nvram_restore [2017/05/11 09:06]
admin
uphp:functions:nvram_restore [2021/09/13 05:57] (current)
Line 1: Line 1:
 ======nvram_restore====== ======nvram_restore======
  
-<badge>WMPRO, WMMINI FW >= 1.1015</badge> <badge>WMMEGA FW >= 2.0</badge>+<badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge>
  
-Restore the contents of non-volatile RAM (NVRAMfrom a file+Restore the contents of <tooltip title="Non-Volatile RAM">NVRAM</tooltip> from a file
  
 ====Description==== ====Description====
  
 <well size="sm"><html> <well size="sm"><html>
-<span style="color:green">int+<span style="font-size:125%;color:green">int
 <span style="color:black">nvram_restore ( <span style="color:black">nvram_restore (
 <span style="color:green">string <span style="color:green">string
Line 21: Line 21:
 ====Return Values==== ====Return Values====
  
-<html><b><span style="color:green">int<span style="color:black"></b></html>:  number of bytes restored or 0 if unsuccessful+<html><b><span style="color:green">Integer<span style="color:black"></b></html> number of bytes restoredor 0 if unsuccessful
  
 ====Example==== ====Example====
Line 30: Line 30:
   if ($res > 0) {   if ($res > 0) {
     print("NVRAM Restore complete. File Size: ".$res);     print("NVRAM Restore complete. File Size: ".$res);
-  } else print("Restore failed.");+  } else 
 +    print("Restore failed."); 
 +  }
 ?> ?>
 </code> </code>
 +
 ====See Also==== ====See Also====
  
-[[nvram_backup()]] - Backup NVRAM contents to a file</html>+[[nvram_backup()]] - Backup the contents of <tooltip title="Non-Volatile RAM">NVRAM</tooltipto a file on the SD Card
uphp/functions/nvram_restore.1494493616.txt.gz · Last modified: 2021/09/13 05:56 (external edit)