OSDN Git Service
(root)
/
android-x86
/
device-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
716a572
)
generic_x86: init.sh: a hack for 3G modem
author
Chih-Wei Huang
<cwhuang@linux.org.tw>
Mon, 25 Jun 2012 07:16:46 +0000
(15:16 +0800)
committer
Chih-Wei Huang
<cwhuang@linux.org.tw>
Mon, 25 Jun 2012 07:16:46 +0000
(15:16 +0800)
generic_x86/init.sh
patch
|
blob
|
history
diff --git
a/generic_x86/init.sh
b/generic_x86/init.sh
index
0d64b87
..
d520622
100644
(file)
--- a/
generic_x86/init.sh
+++ b/
generic_x86/init.sh
@@
-35,6
+35,9
@@
chown 1000.1000 ${brfile:-/sys/class/backlight/acpi_video0/brightness}
# disable cursor blinking
[ "$(getprop system_init.startsurfaceflinger)" = "0" ] && echo -e '\033[?17;0;0c' > /dev/tty0
+# a hack for USB modem
+lsusb | grep 1a8d:1000 && eject
+
hardware=$(getprop ro.hardware)
hw_sh=/system/etc/init.$hardware.sh
[ -e $hw_sh ] && exec sh $hw_sh