f4a3afe8fb
Specify conffiles for our packages, so they aren't overwritten during opkg updates. While this only matters during development, it is unintended to have different behaviour for opkg update and full firmware updates.
47 lines
983 B
Makefile
47 lines
983 B
Makefile
# Copyright (C) 2012 Nils Schneider <nils at nilsschneider.net>
|
|
# This is free software, licensed under the Apache 2.0 license.
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=gluon-setup-mode
|
|
PKG_VERSION:=1
|
|
|
|
include ../gluon.mk
|
|
|
|
define Package/gluon-setup-mode
|
|
TITLE:=Setup mode
|
|
DEPENDS:=+gluon-core +gluon-lock-password +ubus +dnsmasq
|
|
endef
|
|
|
|
define Package/gluon-setup-mode/description
|
|
Offline mode to perform basic setup in a secure manner.
|
|
endef
|
|
|
|
define Package/gluon-setup-mode/conffiles
|
|
/etc/config/gluon-setup-mode
|
|
endef
|
|
|
|
init_links := \
|
|
K89log \
|
|
K98boot \
|
|
K99umount \
|
|
S00sysfixtime \
|
|
S10boot \
|
|
S10gluon-core-reconfigure \
|
|
S10system \
|
|
S11sysctl \
|
|
S12log \
|
|
S95done
|
|
|
|
define Package/gluon-setup-mode/install
|
|
$(Gluon/Build/Install)
|
|
|
|
$(LN) S20network $(1)/lib/gluon/setup-mode/rc.d/K90network
|
|
|
|
for link in $(init_links); do \
|
|
$(LN) "/etc/init.d/$$$${link:3}" "$(1)/lib/gluon/setup-mode/rc.d/$$$${link}"; \
|
|
done
|
|
endef
|
|
|
|
$(eval $(call BuildPackageGluon,gluon-setup-mode))
|