纳须弥

海纳百川
有容乃大

自行编译OpenWRT脚本

#还原默认IP为192.168.1.1
sed -i 's/192.168.2.1/192.168.1.1/g' package/base-files/files/bin/config_generate
git pull
#进入package/lean目录,下载所需的包
cd package/lean

#编译dockerman,来自官方脚本
#先清除lean中包含的luci-lib-docker
rm -fr luci-lib-docker
git clone https://github.com/lisaac/luci-lib-docker.git

#先清除lean中包含的luci-app-dockerman
rm luci-app-dockerman -fr
git clone https://github.com/lisaac/luci-app-dockerman.git


#下载lienol代码中的luci-app-fileassistant
#rm -rf luci-app-fileassistant
#svn checkout https://github.com/xiaorouji/openwrt-package/trunk/lienol/luci-app-#fileassistant

#下载luci-app-adguardhome
rm -rf luci-app-adguardhome
git clone https://github.com/rufengsuixing/luci-app-adguardhome.git

#下载passwall所用到的依赖包
#rm -rf small
#git clone https://github.com/kenzok8/small.git

#下载passwall包
#rm -rf luci-app-passwall
#svn checkout https://github.com/kenzok8/openwrt-packages/trunk/luci-app-passwall
#rm -rf small
rm -rf openwrt-passwall
git clone https://github.com/xiaorouji/openwrt-passwall.git
#mv openwrt-package small

#下载ssr+plus
rm -rf helloworld
git clone https://github.com/fw876/helloworld.git
#下载OpenClash
rm -rf OpenClash
git clone https://github.com/vernesong/OpenClash.git

#下载luci-app-clash
rm -rf luci-app-clash
git clone https://github.com/frainzy1477/luci-app-clash.git

#下载OpenAppFilter
rm -rf OpenAppFilter
git clone https://github.com/destan19/OpenAppFilter.git

#下载openwrt-gowebdav
rm -rf openwrt-gowebdav
git clone https://github.com/project-openwrt/openwrt-gowebdav.git

#回到package目录
cd ..
#回到openwrt根目录
cd ..
rm -rf ./tmp
./scripts/feeds update -a

#下载smartdns核心,来自官方脚本
WORKINGDIR="`pwd`/feeds/packages/net/smartdns"
mkdir $WORKINGDIR -p
rm $WORKINGDIR/* -fr
wget https://github.com/pymumu/openwrt-smartdns/archive/master.zip -O $WORKINGDIR/master.zip
unzip $WORKINGDIR/master.zip -d $WORKINGDIR
mv $WORKINGDIR/openwrt-smartdns-master/* $WORKINGDIR/
rmdir $WORKINGDIR/openwrt-smartdns-master
rm $WORKINGDIR/master.zip

#下载smartdns luci,来自官方脚本
LUCIBRANCH="master" #更换此变量
WORKINGDIR="`pwd`/feeds/luci/applications/luci-app-smartdns"
mkdir $WORKINGDIR -p
rm $WORKINGDIR/* -fr
wget https://github.com/pymumu/luci-app-smartdns/archive/${LUCIBRANCH}.zip -O $WORKINGDIR/${LUCIBRANCH}.zip
unzip $WORKINGDIR/${LUCIBRANCH}.zip -d $WORKINGDIR
mv $WORKINGDIR/luci-app-smartdns-${LUCIBRANCH}/* $WORKINGDIR/
rmdir $WORKINGDIR/luci-app-smartdns-${LUCIBRANCH}
rm $WORKINGDIR/${LUCIBRANCH}.zip

./scripts/feeds install -a

#修改默认IP为192.168.2.1
sed -i 's/192.168.1.1/192.168.2.1/g' package/base-files/files/bin/config_generate
#compile
make menuconfig
#choose Utilities  ---> <*> docker-ce....................................... Docker Community Edition
#choose Kernel features for Docker which you want
#choose LuCI ---> 3. Applications  ---> <*> luci-app-dockerman..... Docker Manager interface for LuCI ----> save

make -j9 V=s
本原创文章未经允许不得转载 | 当前页面:纳须弥 » 自行编译OpenWRT脚本

评论