fix: branding conflict with base-files banner

This commit is contained in:
xiexiaobao 2026-06-27 23:50:44 +08:00
parent 815cf3b0ec
commit 58b3162fb9
3 changed files with 14 additions and 12 deletions

View File

@ -13,15 +13,13 @@ define Package/branding
PKGARCH:=all
endef
define Package/branding/description
MapleOS: login title, SSH banner, web footer.
MapleOS: title, SSH banner, web footer.
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/branding/install
$(INSTALL_DIR) $(1)/etc
$(INSTALL_DATA) ./files/etc/banner $(1)/etc/banner
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_BIN) ./files/etc/uci-defaults/99-branding $(1)/etc/uci-defaults/99-branding
$(INSTALL_DIR) $(1)/www/luci-static/material

View File

@ -1,8 +0,0 @@
__ __ _
| \/ | __ _ ___| |__ ___ _ __
| |\/| |/ _` |/ __| '_ \ / _ \ '__|
| | | | (_| | (__| | | | __/ |
|_| |_|\__,_|\___|_| |_|\___|_|
MapleOS
-----------------------------------------------------

View File

@ -1,7 +1,19 @@
#!/bin/sh
# MapleOS branding
# MapleOS login title
uci -q set system.@system[0].description="MapleOS"
uci -q commit system
# Write custom SSH banner
cat > /etc/banner << "BAN"
__ __ _
| \/ | __ _ ___| |__ ___ _ __
| |\/| |/ _` |/ __| '_ \ / _ \ '__|
| | | | (_| | (__| | | | __/ |
|_| |_|\__,_|\___|_| |_|\___|_|
MapleOS
-----------------------------------------------------
BAN
exit 0