Skip to content
Snippets Groups Projects
Unverified Commit cf0dc244 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

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.
parent 9be7a5ca
No related branches found
No related tags found
No related merge requests found
Showing
with 21 additions and 10 deletions
......@@ -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))
/etc/init.d/log
\ No newline at end of file
S20network
\ No newline at end of file
/etc/init.d/boot
\ No newline at end of file
/etc/init.d/umount
\ No newline at end of file
/etc/init.d/sysfixtime
\ No newline at end of file
/etc/init.d/boot
\ No newline at end of file
/etc/init.d/system
\ No newline at end of file
/etc/init.d/sysctl
\ No newline at end of file
/etc/init.d/log
\ No newline at end of file
/etc/init.d/done
\ No newline at end of file
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