Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/build/otoro-install-busybox.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build/otoro-install-busybox.sh')
-rwxr-xr-xbuild/otoro-install-busybox.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/build/otoro-install-busybox.sh b/build/otoro-install-busybox.sh
new file mode 100755
index 0000000..8fa138b
--- /dev/null
+++ b/build/otoro-install-busybox.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# This shell script installs busybox on the device.
+# This lets us take the fast path in install-gaia.py.
+
+# Remount file system with read/write permissions
+adb shell "mount -o rw,remount -t rootfs /"
+adb shell "mkdir -p /system/vendor/bin"
+adb push busybox-armv6l /vendor/bin/busybox
+adb shell "chmod 555 /vendor/bin/busybox"
+
+# Perform the symbolic links
+adb shell "for x in \`busybox --list\`; do ln -s /vendor/bin/busybox /vendor/bin/\$x; done"
+
+# Remount file system with read-only permissions
+adb shell "mount -o ro,remount -t rootfs /"
+