Git Product home page Git Product logo

luci-app-smartdns's Introduction

luci-app-smartdns

此仓库为smartdns独立仓库,为单独编译使用, 在安装此界面前,需要先安装smartdns进程编译脚本。
请先安装openwrt-smartdns

仓库分为两个分支

  1. master分支为openwrt 19.07之后版本使用,此版本基于javascript。
  2. lede分支为lede分支使用, 此版本基于lua。

使用时,请使用配套的版本。

使用方式

如下命令操作路径为openwrt源代码所在目录。

复制仓库中的文件到如下目录,并执行安装

feeds/luci/applications/luci-app-smartdns/
./scripts/feeds install luci -a

lede请下载lede分支

执行openwrt配置, 选中luci-app-smartdns

  • 选择路径:

LuCI > 3. Applications > luci-app-smartdns

make menuconfig
  • 编译模式:
  1. 若编译独立软件包,选择编译模式为M
  2. 若编译到固件中,选择编译模式为*

执行openwrt编译

仅编译软件包:

make package/feeds/luci/applications/luci-app-smartdns/compile

编译固件以及软件包。

make -j8

懒人脚本

可执行如下命令,一次性下载smartdns以及luci-app-smartdns。
下列命令可采用复制粘贴的方式执行。

注意事项:

  1. 执行下列命令时,需要确保当前路径为openwrt代码路径。
  2. 确保执行过./scripts/feeds进行更新。
  3. 若是LEDE,请更换LUCIBRANCH变量为
LUCIBRANCH="lede"

批量命令:

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

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
make menuconfig

下载完成后,执行配置编译。

luci-app-smartdns's People

Contributors

pymumu avatar simonsmh avatar tjuyy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.