[LEDE-DEV] [EXAMPLE 2/1] custom-banner: package customizing LEDE banner

Rafał Miłecki zajec5 at gmail.com
Wed Dec 7 07:19:09 PST 2016


From: Rafał Miłecki <rafal at milecki.pl>

Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
 package/custom-banner/Makefile | 28 ++++++++++++++++++++++++++++
 package/custom-banner/banner   | 10 ++++++++++
 2 files changed, 38 insertions(+)
 create mode 100644 package/custom-banner/Makefile
 create mode 100644 package/custom-banner/banner

diff --git a/package/custom-banner/Makefile b/package/custom-banner/Makefile
new file mode 100644
index 0000000..f860d2d
--- /dev/null
+++ b/package/custom-banner/Makefile
@@ -0,0 +1,28 @@
+include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/version.mk
+
+PKG_NAME:=custom-banner
+PKG_RELEASE:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/custom-banner
+  SECTION:=base
+  CATEGORY:=Base system
+  DEPENDS:=+base-files
+  TITLE:=Custom banner
+endef
+
+define Build/Prepare
+	mkdir -p $(PKG_BUILD_DIR)
+endef
+
+define Build/Compile
+endef
+
+define Package/custom-banner/install-overlay
+	$(INSTALL_DIR) $(1)/etc/
+	$(CP) ./banner $(1)/etc/
+endef
+
+$(eval $(call BuildPackage,custom-banner))
diff --git a/package/custom-banner/banner b/package/custom-banner/banner
new file mode 100644
index 0000000..c95a4c0
--- /dev/null
+++ b/package/custom-banner/banner
@@ -0,0 +1,10 @@
+     _________
+    /        /\
+   /    U   /  \
+  /   C    /    \
+ /________/  S   \
+ \        \    T /
+  \   M    \    /  -----------------------------------------------------------
+   \    O   \  /    Custom banner
+    \________\/    -----------------------------------------------------------
+
-- 
2.10.1




More information about the Lede-dev mailing list