Exemplo n.º 1
0
def linksys_dblzip_install_fw(firmware, zip_name, fw_name):
    zipfile1_path = firmware.remote_files[0].path
    unzip_dir = fetchfw.zip_extract_all(firmware.name, zipfile1_path)
    zipfile2_path = os.path.join(unzip_dir, zip_name)
    
    fw_dst_path = os.path.join(fetchfw.TFTP_PATH, 'Linksys', 'firmware')
    fetchfw.makedirs(fw_dst_path)
    fetchfw.zip_extract_files(zipfile2_path, (fw_name,), fw_dst_path)
Exemplo n.º 2
0
def linksys_zip_install_fw(firmware, fw_name):
    zipfile_path = firmware.remote_files[0].path
    fw_dst_path = os.path.join(fetchfw.TFTP_PATH, 'Linksys', 'firmware')
    fetchfw.makedirs(fw_dst_path)
    fetchfw.zip_extract_files(zipfile_path, (fw_name,), fw_dst_path)
Exemplo n.º 3
0
def zenitel_install(firmware):
    fw_dst_dir = os.path.join(fetchfw.TFTP_PATH)
    fetchfw.makedirs(fw_dst_dir)
    fetchfw.zip_extract_files(firmware.remote_files[0].path, ('A100G80200.01_11_3_2.bin',), fw_dst_dir)
Exemplo n.º 4
0
def ciscospa5xx_install_fw(firmware, fw_name):
    zipfile_path = firmware.remote_files[0].path
    fetchfw.makedirs(smb_fw_dst_path)
    fetchfw.zip_extract_files(zipfile_path, (fw_name,), smb_fw_dst_path)