在板子上电后自动运行程序

将自己的应用加在/etc/profile文件中
MSLIB_PATH=/vendor/lib

export LD_PRELOAD=$MSLIB_PATH/preloadable_libiconv.so
export LD_LIBRARY_PATH=$MSLIB_PATH:$MSLIB_PATH/utopia
export TERM=vt100
export TERMINFO=/terminfo

export GST_PLUGIN_PATH=$MSLIB_PATH/gstreamer-0.10
export GST_PLUGIN_SCANNER=$MSLIB_PATH/gstreamer-0.10/bin/gst-plugin-scanner
export GST_REGISTRY=$MSLIB_PATH/gstreamer.registry
export GST_REGISTRY_FORK=no
export GST_REGISTRY_UPDATE=no

ulimit -c unlimited >/dev/null 2>&1
#echo ""
#echo ""
#echo "Please press Ctrl-C TWICE to leave auto run mode."
#for i in 1 2 3 4 5 ; do
#    echo -e -n $i" "
#    sleep 1
#done

#udhcpc -t 1 -T 3 -n
ulimit -s 4196

#Skype run-time daemon
if [ -f /applications/Skype/linux-mipsel-skypekit-voicertp-videortp ];then
        echo "Start Skype daemon..."
        /applications/Skype/linux-mipsel-skypekit-voicertp-videortp &
fi

echo "cd to applications/bin"
cd /applications

./apm &

cd /applications/bin
./autorun &

echo "cd to applications/tv/bin"
cd /applications/tv/bin
./dvbt_board &
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值