Skip to content
Snippets Groups Projects
Commit dbfef9e5 authored by Karsten Böddeker's avatar Karsten Böddeker Committed by Michael Schwarz
Browse files

Adds ffho-banner

parent 697224fc
No related branches found
No related tags found
No related merge requests found
include $(TOPDIR)/rules.mk
PKG_NAME:=ffho-banner
PKG_VERSION:=1
PKG_RELEASE:=$(GLUON_VERSION).$(GLUON_SITE_CODE)-$(GLUON_RELEASE).$(GLUON_CONFIG_VERSION)
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/ffho-banner
SECTION:=ffho
CATEGORY:=Customization
TITLE:=Banner file replacement
DEPENDS:=+gluon-core +busybox
MAINTAINER:=Freifunk Hochstift <maschinenraum@hochstift.freifunk.net>
URL:=https://git.c3pb.de/freifunk-pb/ffpb-packages
SOURCE:=git@git.c3pb.de:freifunk-pb/ffpb-packages.git
endef
define Package/ffho-banner/description
Banner file replacement
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/ffho-banner/preinst
#!/bin/sh
cd "$${IPKG_INSTROOT}/etc/"
if [ -h "./banner" ] ; then
/bin/rm "./banner"
elif [ -f "./banner" ] ; then
/bin/mv "./banner" "./banner.openwrt"
fi
/bin/ln -s "./banner.openwrt" "./banner"
exit 0
endef
define Package/ffho-banner/postinst
#!/bin/sh
cd "$${IPKG_INSTROOT}/etc/"
[ -h "./banner" ] && /bin/rm -f "./banner"
/bin/ln -s "./banner.ffho" "./banner"
exit $$?
endef
define Package/ffho-banner/prerm
#!/bin/sh
cd "$${IPKG_INSTROOT}/etc/"
if [ -h "./banner" ] ; then
[[ "$$(readlink -n ./banner)" == "./banner.ffho" ]] && \
/bin/rm -f "./banner" && \
[ -f "./banner.openwrt" ] && \
/bin/ln -s "./banner.openwrt" "./banner"
fi
exit 0
endef
define Package/ffho-banner/install
$(INSTALL_DIR) $(1)/etc/
$(INSTALL_DATA) ./files/etc/banner.ffho $(1)/etc/
endef
$(eval $(call BuildPackage,ffho-banner))
_____ _ ___ _ _____ _ _ _ ___ _
| __|___ ___|_| _|_ _ ___| |_ | | |___ ___| |_ ___| |_|_| _| |_
| __| _| -_| | _| | | | '_| | | . | _| |_ -| _| | _| _|
|__| |_| |___|_|_| |___|_|_|_,_| |__|__|___|___|_|_|___|_| |_|_| |_|
--- "Du bist hier Root - mach bloß keinen Scheiß!" (tm) ---
Web : http://hochstift.freifunk.net/
Kontakt: kontakt@hochstift.freifunk.net und (EMail)
https://youngage.eu/chat/?#ffho (Chat)
Deine FFHO-Werkzeuge:
- ffpb-debug (Debug-Report für Unterstützung senden)
- autoupdater -f (Firmware-Update erzwingen)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment