From 31e1dedcf5917df6f0548ac02c450bbaa419495f Mon Sep 17 00:00:00 2001 From: Michael Stucki Date: Mon, 4 Apr 2016 20:23:24 +0200 Subject: [PATCH] Cleanup --- README.md | 2 +- run.sh | 31 ++++++++++++++----------------- startup.sh | 1 - 3 files changed, 15 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 25c6b6d..ecbb1ab 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ cd docker-cyanogenmod 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 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]. diff --git a/run.sh b/run.sh index 7fba4ba..d3540d1 100755 --- a/run.sh +++ b/run.sh @@ -11,23 +11,20 @@ TAG=cm-13.0 FORCE_BUILD=0 PRIVILEGED= -while [[ $# > 0 ]] -do -key="$1" - -case $key in - -r|--rebuild) - FORCE_BUILD=1 - ;; - -u|--enable-usb) - PRIVILEGED="--privileged -v /dev/bus/usb:/dev/bus/usb" - ;; - *) - shift # past argument or value - ;; -esac -shift - +while [[ $# > 0 ]]; do + key="$1" + case $key in + -r|--rebuild) + FORCE_BUILD=1 + ;; + -u|--enable-usb) + PRIVILEGED="--privileged -v /dev/bus/usb:/dev/bus/usb" + ;; + *) + shift # past argument or value + ;; + esac + shift done # Create shared folders diff --git a/startup.sh b/startup.sh index 5e5c366..6c8dec1 100644 --- a/startup.sh +++ b/startup.sh @@ -9,5 +9,4 @@ fi export USER="cmbuild" # Launch screen session -#/bin/bash --login screen -s /bin/bash