系统管理 - 系统设置 - Enable JFFS custom scripts and configs
重启后确定存在路径 /jffs/scripts/
vi /jffs/scripts/start-xunlei.sh
#!/bin/sh
/mnt/USB3/Merlin_software/xware/portal>tmp/123.log
sleep 20
/mnt/USB3/Merlin_software/xware/portal -s
sleep 10
/mnt/USB3/Merlin_software/xware/portal>>tmp/123.log
重启
cat start-xunlei.sh
#!/bin/sh
eval `dbus export xunlei`
xunleiPath=$xunlei_basic_usb/Merlin_software/xunlei
if [ ! -z "$xunleiPath" ];then
sleep 10
$xunleiPath/portal &
fi