Firmware update script cleanup