找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 805|回复: 5

【外部存储storage】: /etc/storage -> /opt/storage 这个命令怎么设置呀?

[复制链接]
本帖最后由 jontao 于 2023-12-5 13:02 编辑

h大的没有kvr,找了一个kvr,但是里面没有h大的扩展模式,没有了外部存储 (/etc/storage)【外部存储storage】: /etc/storage -> /opt/storage


不知道H大用的哪条命令启动后将storage映射到/opt/storage了。。。。谁知道怎么编写分享一下,非常感谢。


搞定了,用的sh文件启动,直接启动命令不行。

lucky zerotier shellclash都可以安装使用了。

这是大佬的扩展配置里面的OPT的相应配置。


  主要是用这个,这个就是外部扩展存储的,但是里面有一些没用的,只留关键几条信息就行了,然后在路由器启动后加入/etc/storage *.sh(*你自己命令,把修改好的sh文件放在这个目录) 记得提交保存一下,否则重启可能就没有了。
主要是下面几句话,
第一句是向日志发送 【外部存储storage】" "/etc/storage -> /opt/storage
第二句才是关键的,将/etc/storage 扩展到/opt/storage
第三句是保存。
学到老用到老呀,另外强烈推荐sellclash,感觉比自带的v(tu)ryo等等都高效,CPU占用率也低20-30%可以达到最高5W+的流量 ,和K3可以一比了。足够用了,而且秒开。


  1. logger -t "【外部存储storage】" "/etc/storage -> /opt/storage"
  2. mount --bind /opt/storage /etc/storage
  3. mtd_storage.sh fill
复制代码


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
 楼主| | 显示全部楼层




就是h大扩展功能里面的这个脚本。只有h大的固件里面有,其他人的固件里面没有呀,但是我又需要。咋搞进去呀。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
        logger -t "【外部存储storage】" "/etc/storage -> /opt/storage"
        mount --bind /opt/storage /etc/storage
        mtd_storage.sh fill
fi
else
        mountpoint -q /etc/storage && logger -t "【外部存储storage】" "停止外部存储storage! umount /etc/storage"
        mountpoint -q /etc/storage && umount /etc/storage
        mountpoint -q /etc/storage && umount -l /etc/storage
        mountpoint -q /etc/storage && { fuser -m -k /etc/storage 2>/dev/null ; umount -l /etc/storage ; }
        sleep 1
        mtd_storage.sh fill
fi
EEE
chmod 755 "/tmp/re_upan_storage.sh"

cifs_script="/etc/storage/cifs_script.sh"
if [ ! -f "$cifs_script" ] || [ ! -s "$cifs_script" ] ; then
        cat > "$cifs_script" <<-\EEE

找到这些,不晓得哪些是有用的。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
本帖最后由 jontao 于 2023-12-5 10:48 编辑

试成功了,logger -t "【外部存储storage】" "/etc/storage -> /opt/storage"
        mount --bind /opt/storage /etc/storage
用这句话就可以了,然后加载到启动后加载就可以了。

命令好像不行,手动输入密令可以启动,但是开机不能自启动
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
怎么设置一个计划任务,开机运行这个命令呀 mount --bind /opt/storage /etc/storage
不然的话每次启动就没有了。。好生郁闷呀。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

找了一个kvr

请问这个是哪里去找的呢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-28 00:30

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表