Raspberry Pi 2 install xware

Create a new folder /opt/xware
http://luyou.xunlei.com/thread-15167-1-1.html
Xware3.0.32.253_cubieboard.zip
http://luyou.xunlei.com/forum.php?mod=attachment&aid =Mjc2NzV8NDllMjAyNWR8MTQ0NzI5MTMyNHw3MzgxN3wxNTE2Nw%3D%3D

test start
/opt/xware/etm_monitor
can get an activation code after executing it.

Open the webpage
http://yuancheng.xunlei.com/
and click on the left to add the activation code to associate the program.

Modify thunder_mounts.cfg File Obtaining the partition
through the mount command
The following is the directory I deleted the default and changed it to my own. The new folder /nas/xunlei
root directory mount The specified mount point is /dev/mmcblk0p2/
#Filter the same mount path as the second column
invalid_mounts
{
        rootfs /
}
#Only accept mount paths starting with the following paths
available_mounts
{
        /nas/xunlei/
        /dev/mmcblk0p2/
}
#The following directories are considered partitions and remain unchanged during program execution
virtual_mounts
{
        /nas/xunlei/
}


New file /etc/init.d/xware
#!/bin/sh

### BEGIN INIT INFO
# Provides: xware
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: xware
### END INIT INFO

case $1 in
        start)
                / opt / xware /
                / opt / xware / etm_monitor &
                ;;
        stop)
                killall xware_bash.sh
                killall etm_xware
                killall vod_httpserver
                ;;
        *)
                echo "Usage: /etc/init.d/xware {start|stop}"
                exit 1
                ;;
esac
exit 0


Add startup service
quote
sudo update-rc.d xware defaults

delete a service
quote
sudo update-rc.d xware remove


Edit startup
Install boot startup management
sudo apt-get install sysv-rc-conf
Run management software
sudo sysv-rc-conf

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326945670&siteId=291194637