METHOD FOR RESTORING SYSTEM CONFIGURATION INFORMATION OF A NETWORK ATTACHED STORAGE
First Claim
1. A method for restoring system configuration information of a network attached storage, the network attached storage comprises a general purpose input/output (GPIO) device, the GPIO device comprises a first pin, a power switch, a light emitting diode (LED) and a second pin connected in turn, the method comprising the steps of:
- setting system configuration information of the network attached storage as a backup file;
registering an interrupt handler;
pressing down an input key connected to the power switch to turn off the power switch and generate an interrupt signal in the first pin;
invoking the interrupt handler to process the interrupt signal and returning interrupt GPIO information;
determining whether an operating system of the network attached storage receives the interrupt GPIO information from the interrupt handler;
sending a periodical voltage to the second pin for blinking the LED if the operating system receives the interrupt GPIO information from the interrupt handler;
invoking the backup file to restore the system configuration information of the network attached storage; and
sending a high voltage command to the second pin for powering off the LED, which indicates that the system configuration information has been restored.
2 Assignments
0 Petitions
Accused Products
Abstract
A method for restoring system configuration information of a network attached storage includes the steps of: setting system configuration information of an network attached storage as a backup file; registering an interrupt handler; pressing down an input key (16) to turn off a power switch (K1) and generate an interrupt signal; invoking the interrupt handler to process the interrupt signal and returning interrupt GPIO information; determining whether an operating system receives the interrupt GPIO information from the interrupt handler; sending a periodical voltage to a second pin (P2) for blinking a LED (L1) if the operating system receives the interrupt GPIO information from the interrupt handler; invoking the backup file to restore the system configuration information of the network attached storage; and sending a high voltage command to the second pin for powering off the LED, which indicates that the system configuration information has been restored.
9 Citations
4 Claims
-
1. A method for restoring system configuration information of a network attached storage, the network attached storage comprises a general purpose input/output (GPIO) device, the GPIO device comprises a first pin, a power switch, a light emitting diode (LED) and a second pin connected in turn, the method comprising the steps of:
-
setting system configuration information of the network attached storage as a backup file; registering an interrupt handler; pressing down an input key connected to the power switch to turn off the power switch and generate an interrupt signal in the first pin; invoking the interrupt handler to process the interrupt signal and returning interrupt GPIO information; determining whether an operating system of the network attached storage receives the interrupt GPIO information from the interrupt handler; sending a periodical voltage to the second pin for blinking the LED if the operating system receives the interrupt GPIO information from the interrupt handler; invoking the backup file to restore the system configuration information of the network attached storage; and sending a high voltage command to the second pin for powering off the LED, which indicates that the system configuration information has been restored. - View Dependent Claims (2, 3, 4)
-
Specification