Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I'm working on a battery driver. And ran into the need to save configuration and other variables to a disk, so the driver can reload it, and resume from ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2011
    Posts
    5

    Question Save data/config from the Kernel


    Hi, I'm working on a battery driver. And ran into the need to save configuration and other variables to a disk, so the driver can reload it, and resume from the same state after the reboot.

    Any standard mechanisms for doing this?
    Thanks!

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,655
    Configuration data is usually stored in /etc, such as /etc/battery.conf.d/battery.conf. Runtime data is usually put in someplace such as /opt/battery, or /usr/share/battery. Where isn't so important as consistency.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •