Giter Club home page Giter Club logo

android-linux-chroot-scripts's Introduction

This is a set of scripts designed for using a Linux chroot on Android.

## ROAD MAP ##

install.sh
: installs a Linux chroot on your Android device. See INSTALL file.

linuxchroot.sh
: chroot's you 

etc/init.android/rc.enter
: Base system script ran when entering the chroot.

usr/local/etc/init.android/rc.enter
: Local system script ran when entering the chroot.

etc/init.android/rc.leave
: Base system script ran when leaving the chroot.

usr/local/etc/init.android/rc.leave
: Local system script ran when leaving the chroot.

etc/init.android/rc.conf
: Base system configuration file.

usr/local/etc/init.android/rc.conf
: Local system configuration, overrides anything in etc/init.android/rc.conf.

## INIT SYSTEM ##

The init system is simple, look at the end of linuxchroot.sh!

- Scripts with filenames matching E* will be run on order before entering the chroot.
- Scripts with filenames matching L* will be run in order when the chrooted shell exits and returns control back to linuxchroot.sh.

Place scripts for your local system in ${LINUX_CHROOT}/usr/local/etc/init.android.

If it applies to just about every Android device: place it in ${LINUX_CHROOT}/etc/init.android, commit it, push to GitHub, and send me a pull request explaining the changes.


The execution order is as follows:

	linuxchroot.sh ->
		etc/init.android/rc.enter ->
			etc/init.android/E*
		usr/local/etc/init.android/rc.enter ->
			usr/local/etc/init.android/E*
		chroot $LINUX_CHROOT /bin/login -f root ->
			Your initial shell.
		etc/init.android/rc.leave ->
			etc/init.android/L*
		usr/local/etc/init.android/rc.leave ->
			usr/local/etc/init.android/L*


These scripts are executed after changing directory to the LINUX_CHROOT, but not within it.

android-linux-chroot-scripts's People

Contributors

snaiperskaya96 avatar spidey01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.