コード例 #1
0
ファイル: init.py プロジェクト: nakedible/vpnease-l2tp
def _create_installation_uuid(_log, firstboot=False):
    if not firstboot:
        if os.path.exists(constants.INSTALLATION_UUID):
            return
        _log.warning('installation uuid not found, recreating.')

    helpers.write_random_uuid_file(constants.INSTALLATION_UUID)
コード例 #2
0
ファイル: init.py プロジェクト: nakedible/vpnease-l2tp
def _create_boot_uuid(boot_uuid):
    helpers.write_random_uuid_file(constants.BOOT_UUID)