mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Mk: automate scripting loader.conf
This commit is contained in:
+11
-1
@@ -90,13 +90,23 @@ manifest: check
|
||||
@echo "}"
|
||||
.endif
|
||||
|
||||
scripts: check
|
||||
scripts: check scripts-manual scripts-auto
|
||||
|
||||
scripts-manual:
|
||||
@for SCRIPT in ${PLUGIN_SCRIPTS}; do \
|
||||
if [ -f $${SCRIPT} ]; then \
|
||||
cp $${SCRIPT} ${DESTDIR}/; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
scripts-auto:
|
||||
@if [ -d ${.CURDIR}/src/etc/rc.loader.d ]; then \
|
||||
for SCRIPT in +POST_INSTALL +POST_DEINSTALL; do \
|
||||
echo 'echo "Reloading firmware configuration"' >> ${DESTDIR}/$${SCRIPT}; \
|
||||
echo '/usr/local/etc/rc.configure_firmware' >> ${DESTDIR}/$${SCRIPT}; \
|
||||
done; \
|
||||
fi
|
||||
|
||||
install: check
|
||||
@mkdir -p ${DESTDIR}${LOCALBASE}
|
||||
@(cd ${.CURDIR}/src; find * -type f) | while read FILE; do \
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
echo "Reloading firmware configuration"
|
||||
/usr/local/etc/rc.configure_firmware
|
||||
@@ -1,2 +0,0 @@
|
||||
echo "Reloading firmware configuration"
|
||||
/usr/local/etc/rc.configure_firmware
|
||||
@@ -1,2 +0,0 @@
|
||||
echo "Reloading firmware configuration"
|
||||
/usr/local/etc/rc.configure_firmware
|
||||
@@ -1,2 +0,0 @@
|
||||
echo "Reloading firmware configuration"
|
||||
/usr/local/etc/rc.configure_firmware
|
||||
Reference in New Issue
Block a user