【i.MX6UL开发常见问题】Yocto中如何修改rc.local内容?

5.2 Yocto中如何修改rc.local内容?
答:rc.local的内容在这里修改sources/meta-myir-imx6ulx/recipes-myir/myir-rc-local/myir-rc-local/rc.local.etc
参考如下:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# demo start
export TSLIB_TSDEVICE=/dev/input/event1
#ts_calibrate && ts_test &

export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_CONSOLEDEVICE=none
export QT_QPA_FB_TSLIB=1
export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event1

#添加指令,显示当前时间
date

exit 0

说明:本帖子源于米尔微信公众号【i.MX6UL/i.MX6ULL开发常见问题】专题文章,是由米尔电子工程师基于米尔电子i.MX6UL/i.MX6ULL产品对i.MX6UL/i.MX6ULL开发中常见问题整理, 希望对您有帮助。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章