[Gta04-owner] Upstream Replicant 4.2 support for GTA04
Dr. H. Nikolaus Schaller
hns at goldelico.com
Fri Feb 28 21:36:07 CET 2014
Am 28.02.2014 um 20:46 schrieb Paul Kocialkowski:
>> Paul, would it be OK to have the model name provided by /proc/cmdline
>> and/or /proc/device-tree/model? /sys or /proc doesn't make a big
>> difference...
>
> /proc/device-tree/model would be best. Is it there yet? I'm not sure the
> kernel I built was using device tree.
Not yet. Only in the 3.14ff kernels.
A shell sscript could look like this:
MUX=$(expr "$(cat /proc/cmdline)" : ".*mux=\([^ ]*\)")
[ "$MUX" ] || MUX=$(cat /proc/device-tree/model 2>/dev/null)
case "$MUX$DT" in
GTA04A2 | GTA04A3 | GTA04A3+ ) # Letux 2804
cp /etc/X11/xorg.conf.gta04 /etc/X11/xorg.conf
;;
GTA04B2 | GTA04B6 ) # Letux 3704
(
cd /root
[ -x blanviewd ] || make blanviewd
./blanviewd &
)
cp /etc/X11/xorg.conf.gta04b2 /etc/X11/xorg.conf
;;
esac
More information about the Gta04-owner
mailing list