部署Entware

1、在根文件目录之外创建Entware目录

mkdir -p /volume1/@Entware/opt

2、移除/opt并挂载optware 文件夹

请确定 /opt文件夹是空的(Optware 未安装),在这个步骤中我们会连带该目录内的文件一起删除。

rm -rf /opt
mkdir /opt
mount -o bind "/volume1/@Entware/opt" /opt

3、根据处理器型号运行脚本

aarch64(armv8)比如:猫盘黑群晖、DS220j

wget -O - http://bin.entware.net/aarch64-k3.10/installer/generic.sh | /bin/sh

x86_64 比如:蜗牛星际黑群晖、DS918+

wget -O - http://bin.entware.net/x64-k3.2/installer/generic.sh | /bin/sh

4、创建开机计划任务

在计划任务中创建一个触发的任务

进入DSM页面> 控制面板 > 计划任务

新增 > 触发的任务 >用户自定义脚本

常规

任务: Entware

用户账号: root

事件: 开机

先行任务: 无

任务设置

运行命令: (填写以下内容)

#!/bin/sh

# Mount/Start Entware
mkdir -p /opt
mount -o bind "/volume1/@Entware/opt" /opt
/opt/etc/init.d/rc.unslung start

# Add Entware Profile in Global Profile
if grep  -qF  '/opt/etc/profile' /etc/profile; then
    echo "Confirmed: Entware Profile in Global Profile"
else
    echo "Adding: Entware Profile in Global Profile"
cat >> /etc/profile <<"EOF"

# Load Entware Profile
. /opt/etc/profile
EOF
fi

# Update Entware List
/opt/bin/opkg update

5、重启你的群晖

 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。