Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/build/otoro-install-busybox.sh
blob: 8fa138bca98711e25bcd477a2b72c7f28311d3da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 /"