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:
parent
9be7a5cad7
commit
cf0dc24463
@ -17,4 +17,25 @@ define Package/gluon-setup-mode/description
|
||||
Offline mode to perform basic setup in a secure manner.
|
||||
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))
|
||||
|
@ -1 +0,0 @@
|
||||
/etc/init.d/log
|
@ -1 +0,0 @@
|
||||
S20network
|
@ -1 +0,0 @@
|
||||
/etc/init.d/boot
|
@ -1 +0,0 @@
|
||||
/etc/init.d/umount
|
@ -1 +0,0 @@
|
||||
/etc/init.d/sysfixtime
|
@ -1 +0,0 @@
|
||||
/etc/init.d/boot
|
@ -1 +0,0 @@
|
||||
/etc/init.d/system
|
@ -1 +0,0 @@
|
||||
/etc/init.d/sysctl
|
@ -1 +0,0 @@
|
||||
/etc/init.d/log
|
@ -1 +0,0 @@
|
||||
/etc/init.d/done
|
Loading…
Reference in New Issue
Block a user