diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2014-10-24 17:35:04 +0200 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2014-10-24 17:35:04 +0200 |
commit | 5d02a1e32df0a8941d3921ba8533b35c70f7ca3b (patch) | |
tree | 4d1f51d48b6173802d66a01653a3e23f68e9aa4e /recipes-lxde/lxde-common/lxde-common_0.5.5.bbappend | |
parent | 6f49ed0845de3da51c5cd3d8989add62920afa7a (diff) |
colibri_vf: detect module type on dt kernels
Detect the module type using the compatible property of the device
tree to symlink the module specific background image.
Diffstat (limited to 'recipes-lxde/lxde-common/lxde-common_0.5.5.bbappend')
-rw-r--r-- | recipes-lxde/lxde-common/lxde-common_0.5.5.bbappend | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/recipes-lxde/lxde-common/lxde-common_0.5.5.bbappend b/recipes-lxde/lxde-common/lxde-common_0.5.5.bbappend index d22ad2f..7305cff 100644 --- a/recipes-lxde/lxde-common/lxde-common_0.5.5.bbappend +++ b/recipes-lxde/lxde-common/lxde-common_0.5.5.bbappend @@ -46,9 +46,12 @@ pkg_postinst_${PN}_vf () { exit 1 fi IS_VF50=`grep -c VF50 /proc/cpuinfo` - if [ $IS_VF50 -gt 0 ]; then + IS_VF50_DTB=`grep -c toradex,vf500-colibri_vf50 /proc/device-tree/compatible` + IS_VF61=`grep -c VF61 /proc/cpuinfo` + IS_VF61_DTB=`grep -c toradex,vf610-colibri_vf61 /proc/device-tree/compatible` + if [ $IS_VF50 -gt 0 ] || [ $IS_VF50_DTB -gt 0 ]; then ln -sf Wallpaper_ColibriVF50.png ${datadir}/lxde/wallpapers/toradex.png - else + elif [ $IS_VF61 -gt 0 ] || [ $IS_VF61_DTB -gt 0 ]; then ln -sf Wallpaper_ColibriVF61.png ${datadir}/lxde/wallpapers/toradex.png fi } |