gluon-setup-mode: create symlinks in install script

The package rebuild logic of OpenWrt only checks regular files. Avoid
symlinks in the files directory to make rebuilds more robust.
This commit is contained in:
Matthias Schiffer 2020-06-30 21:27:53 +02:00
parent 9be7a5cad7
commit cf0dc24463
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
11 changed files with 21 additions and 10 deletions

View File

@ -17,4 +17,25 @@ define Package/gluon-setup-mode/description
Offline mode to perform basic setup in a secure manner. Offline mode to perform basic setup in a secure manner.
endef endef
init_links := \
K89log \
K98boot \
K99umount \
S00sysfixtime \
S10boot \
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)) $(eval $(call BuildPackageGluon,gluon-setup-mode))

View File

@ -1 +0,0 @@
/etc/init.d/log

View File

@ -1 +0,0 @@
/etc/init.d/boot

View File

@ -1 +0,0 @@
/etc/init.d/umount

View File

@ -1 +0,0 @@
/etc/init.d/sysfixtime

View File

@ -1 +0,0 @@
/etc/init.d/boot

View File

@ -1 +0,0 @@
/etc/init.d/system

View File

@ -1 +0,0 @@
/etc/init.d/sysctl

View File

@ -1 +0,0 @@
/etc/init.d/log

View File

@ -1 +0,0 @@
/etc/init.d/done