Source code for paradrop.core.config.osconfig

"""
    osconfig module:
        This module is in charge of changing configuration files for
        pdfcd on the host OS. This relates to things like network, dhcp,
        wifi, firewall changes. Pdfcd should be able to make simple abstracted
        calls into this module so that if we need to change what type of OS config
        we need to support only this module would change.
"""

from .uciutils import restoreConfigFile


[docs]def revertConfig(update, theType): """ Tell the UCI module to revert changes to the old state of the chute. """ restoreConfigFile(update.new, theType)