用OpenWRT单独编译ipk插件

一、插件源码下载

1.锐捷

1
2
git clone https://github.com/KyleRicardo/MentoHUST-OpenWrt-ipk
git clone https://github.com/BoringCat/luci-app-mentohust.git

2.Rosy主题

1
git clone https://github.com/rosywrt/luci-theme-rosy.git

二、下载存放路径

1
/home/cheng/openwrt/lede/package

三、配置

1
make menuconfig

选中,但不编译进固件

1.锐捷

1
2
3
4
-> Network
-> Ruijie
<M> mentohust………………………………….. A Ruijie Client Daemon
-> LuCI

-> 3. Applications

1
<M> luci-app-mentohust…………………. MentoHUST 802.1X Client for LuCI

2.Rosy主题

1
-> LuCI

-> 4. Themes

1
<M> luci-theme-rosy……………………………………….. Rosy Theme

四、编译

1
2
3
make package/MentoHUST-OpenWrt-ipk/compile V=99
make package/luci-app-mentohust/compile V=99
make package/luci-theme-rosy/luci-theme-rosy/compile V=99

五、ipk生成路径

路径:

1
bin/packages/mipsel_24kc/base

文件名

1
2
3
mentohust_0.3.1-1_mipsel_24kc.ipk
luci-app-mentohust_1.1.-0_all.ipk
luci-theme-rosy_git-19.069.38477-5ed9705-1_all.ipk

六、上传ipk至路由器

清除原有密钥

1
ssh-keygen -f “/home/cheng/.ssh/known_hosts” -R 192.168.10.1

拷贝至路由器

1
2
3
scp mentohust_0.3.1-1_mipsel_24kc.ipk root@192.168.10.1:/tmp
scp luci-app-mentohust_1.1.-0_all.ipk root@192.168.10.1:/tmp
scp luci-theme-rosy_git-19.069.38477-5ed9705-1_all.ipk root@192.168.10.1:/tmp

七、安装

ssh进入路由器

1
2
3
4
cd /tmp
opkg install mentohust_0.3.1-1_mipsel_24kc.ipk
opkg install luci-app-mentohust_1.1.-0_all.ipk
opkg install luci-theme-rosy_git-19.069.38477-5ed9705-1_all.ipk
-------------���Ľ�����л�����Ķ�-------------
0%