summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fernandes <joel@joelfernandes.org>2018-07-02 20:08:07 -0700
committerJoel Fernandes <joel@joelfernandes.org>2018-07-02 20:08:07 -0700
commitfa4b8cdef88c73ccfcda9f79d44b8c4d79e2530c (patch)
treefb7c4564524c632ae21cb06a716fceb276e18d65
parent47689a7c85876a0182a43deadfc3a6ee4463e357 (diff)
downloadadeb-fa4b8cdef88c73ccfcda9f79d44b8c4d79e2530c.tar.gz
androdeb: Silence banner from run-command
Signed-off-by: Joel Fernandes <joel@joelfernandes.org>
-rwxr-xr-xaddons/run-command2
-rwxr-xr-xbuildstrap2
2 files changed, 3 insertions, 1 deletions
diff --git a/addons/run-command b/addons/run-command
index 01c182c..eed84f9 100755
--- a/addons/run-command
+++ b/addons/run-command
@@ -5,4 +5,4 @@ cd $spath
# Directly execute a command within the chroot of an Android device
CMD="$*"
-chroot debian /bin/bash -i -c "$CMD"
+chroot debian /bin/bash --rcfile '.bashrc.silent' -i -c "$CMD"
diff --git a/buildstrap b/buildstrap
index 5fed520..451d7f5 100755
--- a/buildstrap
+++ b/buildstrap
@@ -24,6 +24,8 @@ umount $OUT_TMP/proc || true
chroot $OUT_TMP rm /bin/sh || true
chroot $OUT_TMP ln -s /bin/bash /bin/sh || true
cp $spath/addons/bashrc $OUT_TMP/.bashrc
+cp $spath/addons/bashrc.common $OUT_TMP/.bashrc.common
+cp $spath/addons/bashrc.silent $OUT_TMP/.bashrc.silent
for f in $EXTRA_FILES; do
if [ $f == "none" ]; then continue; fi