2014-07-05 18:11:41 +00:00
|
|
|
# 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
|
|
|
|
|
2016-10-08 22:18:45 +00:00
|
|
|
include ../gluon.mk
|
2014-07-05 18:11:41 +00:00
|
|
|
|
|
|
|
define Package/gluon-setup-mode
|
|
|
|
TITLE:=Setup mode
|
2023-01-15 19:41:39 +00:00
|
|
|
DEPENDS:=+gluon-core +gluon-lock-password +ubus +dnsmasq-full
|
2014-07-05 18:11:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/gluon-setup-mode/description
|
|
|
|
Offline mode to perform basic setup in a secure manner.
|
|
|
|
endef
|
|
|
|
|
2021-07-23 17:48:58 +00:00
|
|
|
define Package/gluon-setup-mode/conffiles
|
|
|
|
/etc/config/gluon-setup-mode
|
|
|
|
endef
|
|
|
|
|
2020-06-30 19:27:53 +00:00
|
|
|
init_links := \
|
|
|
|
K89log \
|
|
|
|
K98boot \
|
|
|
|
K99umount \
|
|
|
|
S00sysfixtime \
|
|
|
|
S10boot \
|
2020-06-30 18:17:38 +00:00
|
|
|
S10gluon-core-reconfigure \
|
2020-06-30 19:27:53 +00:00
|
|
|
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
|
|
|
|
|
2018-03-08 18:49:41 +00:00
|
|
|
$(eval $(call BuildPackageGluon,gluon-setup-mode))
|