股票

mjpg-streamer在ARM中设置开机自动启动

1,进入/etc/init.d/文件夹

在rcS中加入:

/etc/init.d/mjpg_streamer start

echo ”        ” > /dev/tty1

echo “Starting mjpg-streamer…” > /dev/tty1

 

2,在/etc/init.d下创建mjpg_streamer脚本,写入

#!/bin/sh 

base=start.sh

#See how we were called.

case “$1” in

start)

/mjpg-streamer/$base

;;

stop)

pid=’/bin/pidof $base’

if [ -n “$pid” ]; then

kill -9 $pid

fi

;;

esac

 

exit 0 

 

3,修改start.sh第30行至绝对路径

./mjpg_streamer -i “./input_uvc.so -y” -o “./output_http.so -w ./www

打赏
原文链接:,转发请注明来源!

发表评论