Created
May 22, 2013 10:31
-
-
Save penk/5626651 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | |
export QT_QWS_FONTDIR=/usr/share/fonts/truetype/droid/ | |
if [ ! -e /dev/fb0 ]; then | |
/bin/ln -s /dev/graphics/fb0 /dev/fb0 | |
fi | |
export TSLIB_FBDEVICE=/dev/graphics/fb0 | |
export TSLIB_CONFFILE=/etc/ts.conf | |
export QWS_MOUSE_PROTO=tslib:/dev/input/event9 | |
export QWS_KEYBOARD="linuxinput:/dev/input/event0 linuxinput:/dev/input/event1" | |
export QTDIR=/opt/qws | |
export QT_PLUGIN_PATH=$QTDIR/plugins/ | |
export QML_IMPORT_PATH=$QTDIR/imports/ | |
export LD_LIBRARY_PATH=$QTDIR/lib/:$LD_LIBRARY_PATH | |
export PATH=$QTDIR/bin/:$PATH | |
/bin/echo 125 > /sys/devices/platform/leds_pwm/leds/lcd-backlight/brightness | |
/sbin/modprobe wl12xx_sdio | |
/sbin/ifconfig wlan0 up | |
/bin/rm -f /var/run/dbus/pid | |
/bin/dbus-daemon --system | |
/sbin/wpa_supplicant -B -u -s | |
/usr/sbin/connmand -d | |
until `/usr/lib/mlauncher/mlauncher -qws`; do sleep 1; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
if [ -z $1 ]; then ROOTFS="rootfs" ; else ROOTFS=$1 ; fi | |
export COLUMNS=200 | |
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | |
if [ ! -e /data/$ROOTFS/proc/1 ]; then | |
busybox mount -t proc proc /data/$ROOTFS/proc | |
busybox mount -t sysfs sysfs /data/$ROOTFS/sys | |
#busybox mount --bind /system /data/$ROOTFS/system | |
#busybox mount --bind /vendor /data/$ROOTFS/vendor | |
busybox mount --bind /dev /data/$ROOTFS/dev | |
fi | |
busybox chroot /data/$ROOTFS /usr/bin/start-slatekit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment