Giter Club home page Giter Club logo

flashcast-flasher's Introduction

flashcast-flasher is the set of shell scripts which power FlashCast's mod framework. It began as part of the eureka_buildroot repository in the fs-overlay_flasher overlay directory, but was split out into its own package as it grew.

Scripts

  • flasher: This script gets run at boot to detect images on a partition, flash them, and reboot the device.
  • flash-image: This script is what actually flashes a mod. It extracts the mod (if needed), copies it to a temporary directory, defines a set of helper functions, and then execs imager.sh in the same shell environment.

Bundled Mods

There are also a set of mods which ship with FlashCast and are called by flasher to perform various tasks. These are stored in bundled-mods:

  • factory-reset: When FlashCast is used as a recovery, this mod is run to perform a factory reset if requested by the stock OS.
  • gtvhacker-compat: This mod is run when a legacy GTVHacker-named image is detected. It simply writes the file passed to it to the rootfs MTD partition.
  • init-partitions: If the init_partitions flag file is present on the mod partition, this mod is run and the device is immediately rebooted. This mod expands the first partition on /dev/sda to fill the disk and creates a blank FAT filesystem on it. FlashCast's released USB images are the only images which make use of the flag file at this time.
  • iterate-images: This mod is run when a flashcast-mods directory is detected. It flashes every mod inside the directory passed to it.
  • remove-ota: This mod is run on every FlashCast boot. It removes ota.zip and temp-ota.zip from the cache MTD partition in case an update was partially downloaded by the stock OS.

flashcast-flasher's People

Contributors

tchebb avatar riptidewave93 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.