mirror of
https://github.com/stucki/docker-lineageos
synced 2025-01-23 17:51:07 -05:00
Cleanup
This commit is contained in:
parent
cab01da63c
commit
31e1dedcf5
@ -24,7 +24,7 @@ cd docker-cyanogenmod
|
|||||||
|
|
||||||
The `run.sh` script accepts the following switches:
|
The `run.sh` script accepts the following switches:
|
||||||
|
|
||||||
* -u|--enable-usb - runs the container in privileged mode (this way you can use usb debugging right from the container)
|
* -u|--enable-usb - runs the container in privileged mode (this way you can use adb right from the container)
|
||||||
* -r|--rebuild - force rebuild the image from scratch
|
* -r|--rebuild - force rebuild the image from scratch
|
||||||
|
|
||||||
The container uses "screen" to run the shell. This means that you will be able to open additional shells using [screen keyboard shortcuts][Screen_Shortcuts].
|
The container uses "screen" to run the shell. This means that you will be able to open additional shells using [screen keyboard shortcuts][Screen_Shortcuts].
|
||||||
|
31
run.sh
31
run.sh
@ -11,23 +11,20 @@ TAG=cm-13.0
|
|||||||
FORCE_BUILD=0
|
FORCE_BUILD=0
|
||||||
PRIVILEGED=
|
PRIVILEGED=
|
||||||
|
|
||||||
while [[ $# > 0 ]]
|
while [[ $# > 0 ]]; do
|
||||||
do
|
key="$1"
|
||||||
key="$1"
|
case $key in
|
||||||
|
-r|--rebuild)
|
||||||
case $key in
|
FORCE_BUILD=1
|
||||||
-r|--rebuild)
|
;;
|
||||||
FORCE_BUILD=1
|
-u|--enable-usb)
|
||||||
;;
|
PRIVILEGED="--privileged -v /dev/bus/usb:/dev/bus/usb"
|
||||||
-u|--enable-usb)
|
;;
|
||||||
PRIVILEGED="--privileged -v /dev/bus/usb:/dev/bus/usb"
|
*)
|
||||||
;;
|
shift # past argument or value
|
||||||
*)
|
;;
|
||||||
shift # past argument or value
|
esac
|
||||||
;;
|
shift
|
||||||
esac
|
|
||||||
shift
|
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Create shared folders
|
# Create shared folders
|
||||||
|
@ -9,5 +9,4 @@ fi
|
|||||||
export USER="cmbuild"
|
export USER="cmbuild"
|
||||||
|
|
||||||
# Launch screen session
|
# Launch screen session
|
||||||
#/bin/bash --login
|
|
||||||
screen -s /bin/bash
|
screen -s /bin/bash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user