[{"data":1,"prerenderedAt":220},["ShallowReactive",2],{"wiki-page-/zh-cn/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch2-ge-xing-hua-pei-zhi":3,"wiki-doc-items-/zh-cn/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch2-ge-xing-hua-pei-zhi":175,"language-switcher-data-/zh-cn/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch2-ge-xing-hua-pei-zhi":204,"wiki-i18n-paths-/zh-cn/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch2-ge-xing-hua-pei-zhi":219},{"id":4,"title":5,"body":6,"canonicalPath":156,"chapter":157,"chapterSort":158,"date":159,"description":107,"docI18nKey":160,"docKey":161,"docRoot":162,"docTitle":163,"extension":164,"i18nKey":165,"isBlogPost":166,"isWikiDoc":167,"isWikiIndex":166,"layout":168,"legacyPath":169,"locale":170,"localeSlug":171,"meta":172,"navigation":167,"path":156,"seo":173,"sourcePath":169,"sourceStem":165,"stem":165,"wikiDepth":114,"__hash__":174},"content/wiki/2021-09-16-OpenWrt编译教学/ch2-个性化配置.md","个性化配置",{"type":7,"value":8,"toc":150},"minimark",[9,23,33,43,48,82,94,97,101,118,125,129,143,146],[10,11,13,14,18,19,22],"h3",{"id":12},"修改默认主题进入路径openwrtfeedslucicollectionsluci修改makefile适用于openwrt版本1907不同的版本会稍微不同","修改默认主题进入路径",[15,16,17],"code",{},"openwrt/feeds/luci/collections/luci","，修改",[15,20,21],{},"Makefile","（适用于openwrt版本19.07，不同的版本，会稍微不同）：",[24,25,26,30],"ul",{},[27,28,29],"li",{},"将LUCI_DESCRIPTION中，bootstrap 替换为 argon",[27,31,32],{},"将LUCI_DEPENDS中，+luci-theme-bootstrap 替换为 +luci-theme-argon",[34,35,36,37],"p",{},"原文链接：",[38,39,40],"a",{"href":40,"rel":41},"https://blog.csdn.net/pyt1234567890/article/details/107442792",[42],"nofollow",[44,45,47],"h5",{"id":46},"个性化主题以-argon主题为例可编辑性强要更改openwrt源码中的主题包括argon主题可以按照以下步骤操作","个性化主题以 \"argon\"主题为例，可编辑性强要更改OpenWrt源码中的主题，包括Argon主题，可以按照以下步骤操作：",[49,50,51,58,65,72,75],"ol",{},[27,52,53,54,57],{},"进入",[15,55,56],{},"feeds/luci/themes/","目录",[27,59,60,61,64],{},"找到Argon主题所在的目录（一般为",[15,62,63],{},"luci-theme-argon","），并进入该目录",[27,66,67,68,71],{},"打开",[15,69,70],{},"root/usr/share/luci/static/resources/view/themes/argon/header.htm","文件，该文件定义了Argon主题的顶部导航栏、LOGO等内容",[27,73,74],{},"在header.htm文件中找到需要修改的内容，并进行相应的编辑和保存。例如，将LOGO图片路径指向自己的图片文件，或者调整导航栏的布局和样式",[27,76,77,78,81],{},"如果需要修改Argon主题的其他部分，例如底部导航栏、颜色方案等，可以在",[15,79,80],{},"root/usr/share/luci/static/resources/view/themes/argon/","目录下找到对应的文件进行编辑",[44,83,85,86,89,90,93],{"id":84},"个性化主机名修改packagebase-filesfilesbinconfig_generate将openwrt替换","个性化主机名修改",[15,87,88],{},"package/base-files/files/bin/config_generate","，将",[15,91,92],{},"\"OpenWrt\"","替换",[44,95,96],{"id":96},"自定义默认密码修改passwd文件",[44,98,100],{"id":99},"终端横幅修改文件","终端横幅修改文件：",[102,103,108],"pre",{"className":104,"code":105,"language":106,"meta":107,"style":107},"language-bash shiki shiki-themes github-light github-dark","./package/base-files/files/etc/banner\n","bash","",[15,109,110],{"__ignoreMap":107},[111,112,115],"span",{"class":113,"line":114},"line",1,[111,116,105],{"class":117},"sScJk",[34,119,120,121],{},"横幅生成地址：",[38,122,123],{"href":123,"rel":124},"http://www.network-science.de/ascii/",[42],[44,126,128],{"id":127},"无线更改修改文件","无线更改修改文件：",[102,130,132],{"className":104,"code":131,"language":106,"meta":107,"style":107},"/package/kernel/mac80211/files/lib/wifi/mac80211.sh    # (ssid)\n",[15,133,134],{"__ignoreMap":107},[111,135,136,139],{"class":113,"line":114},[111,137,138],{"class":117},"/package/kernel/mac80211/files/lib/wifi/mac80211.sh",[111,140,142],{"class":141},"sJ8bj","    # (ssid)\n",[34,144,145],{},"修改自定义版本号：openwrt_release",[147,148,149],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}",{"title":107,"searchDepth":151,"depth":151,"links":152},2,[153],{"id":12,"depth":154,"text":155},3,"修改默认主题进入路径openwrt/feeds/luci/collections/luci，修改Makefile（适用于openwrt版本19.07，不同的版本，会稍微不同）：","/zh-cn/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch2-ge-xing-hua-pei-zhi","2",2000000,"2021-09-16","wiki/2021-09-16-openwrt-bian-yi-jiao-xue","zh-cn:2021-09-16-openwrt-bian-yi-jiao-xue","/zh-cn/wiki/2021-09-16-openwrt-bian-yi-jiao-xue","OpenWrt编译教学","md","wiki/2021-09-16-OpenWrt编译教学/ch2-个性化配置",false,true,null,"/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch2-ge-xing-hua-pei-zhi","zh-CN","zh-cn",{},{"title":5,"description":107},"0Rkmliw58MOZ3QaMhG-BPEPhRBlh-_z135L8x6G-qRI",[176,182,183,189,195,201],{"path":177,"stem":178,"title":179,"date":159,"chapter":180,"chapterSort":181,"docKey":161,"docRoot":162,"docTitle":163,"isWikiDoc":167,"isWikiIndex":166},"/zh-cn/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch1-bian-yi-huan-jing-zhun-bei","wiki/2021-09-16-OpenWrt编译教学/ch1-编译环境准备","编译环境准备","1",1000000,{"path":156,"stem":165,"title":5,"date":159,"chapter":157,"chapterSort":158,"docKey":161,"docRoot":162,"docTitle":163,"isWikiDoc":167,"isWikiIndex":166},{"path":184,"stem":185,"title":186,"date":159,"chapter":187,"chapterSort":188,"docKey":161,"docRoot":162,"docTitle":163,"isWikiDoc":167,"isWikiIndex":166},"/zh-cn/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch3-cha-jian-kai-fa","wiki/2021-09-16-OpenWrt编译教学/ch3-插件开发","插件开发","3",3000000,{"path":190,"stem":191,"title":192,"date":159,"chapter":193,"chapterSort":194,"docKey":161,"docRoot":162,"docTitle":163,"isWikiDoc":167,"isWikiIndex":166},"/zh-cn/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch4-bu-chong-gong-ju","wiki/2021-09-16-OpenWrt编译教学/ch4-补充工具","补充工具","4",4000000,{"path":196,"stem":197,"title":198,"date":159,"chapter":199,"chapterSort":200,"docKey":161,"docRoot":162,"docTitle":163,"isWikiDoc":167,"isWikiIndex":166},"/zh-cn/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch5-qi-ta-can-kao-zi-liao-tian-jia-usb-he-ying-pan-ge-shi-hai-you-wang-ka-jiao-cheng","wiki/2021-09-16-OpenWrt编译教学/ch5-其他参考资料添加USB和硬盘格式还有网卡教程：","其他参考资料添加USB和硬盘格式还有网卡教程：","5",5000000,{"path":162,"stem":202,"title":163,"date":159,"chapter":168,"chapterSort":203,"docKey":161,"docRoot":162,"docTitle":163,"isWikiDoc":167,"isWikiIndex":167},"wiki/2021-09-16-OpenWrt编译教学/index",0,{"variants":205},[206,209,212,215,218],{"path":207,"localeSlug":208,"i18nKey":165},"/en-us/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch2-ge-xing-hua-pei-zhi","en-us",{"path":210,"localeSlug":211,"i18nKey":165},"/zh-hant/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch2-ge-xing-hua-pei-zhi","zh-hant",{"path":213,"localeSlug":214,"i18nKey":165},"/zh-hk/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch2-ge-xing-hua-pei-zhi","zh-hk",{"path":216,"localeSlug":217,"i18nKey":165},"/zh-tw/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch2-ge-xing-hua-pei-zhi","zh-tw",{"path":156,"localeSlug":171,"i18nKey":165},[207,169,210,169,213,169,216,169,156,169],1780663041233]