h255d openwrt路由器安装virtualhere

@Ta 2022-07-17发布,2022-07-17修改 6794点击

我的路由器是openwrt 21.02.3

#安装usb依赖
opkg update
opkg install kmod-usb-core
insmod usbcore
opkg install kmod-usb-storage
opkg install kmod-usb2
insmod ehci-hcd
opkg install kmod-usb-storage-uas

#可选
opkg install usbutils


opkg install kmod-usb-dwc2

#安装软件
cd /bin/
wget https://www.virtualhere.com/sites/default/files/usbserver/vhusbdmipsel
chmod +x vhusbdmipsel
cd /etc/init.d/
vi vhusbdmipsel

#!/bin/sh
/etc/rc.common
# Copyright (C) 2008 OpenWrt.org
START=99
USE_PROCD=1
PROG="/bin/vhusbdmipsel"

start_service()
{
    rm -f /bin/vhusbdmipsellog.log # remove old logt/logp files
    procd_open_instance
    procd_set_param command "$PROG"
    procd_append_param command -b -r /bin/vhusbdmipsellog.log
    procd_set_param stdout 1 # forward stdout of the command to logd
    procd_set_param stderr 1 # same for stder
    procd_set_param respawn
    procd_close_instance
}

:x

/etc/init.d/vhusbdmipsel enable
/etc/init.d/vhusbdmipsel start

参考链接
安装 USB 驱动程序并进行故障排除:https://openwrt.org/docs/guide-user/storage/usb-installing
USB didn’t work on HG255D:https://forum.openwrt.org/t/usb-didnt-work-on-hg255d/8339/4
OpenWRT 配置 内网穿透 Sakura frp 开机启动 服务:https://www.codeleading.com/article/24685181897/

127.9.147.96

回复列表(0|显示机器人聊天)
帖子没有回复
添加新回复
回复需要登录