Mk: automate configd restart

This commit is contained in:
Franco Fichtner
2016-09-22 23:48:46 +02:00
parent 6554c8cf9e
commit 5bd397642a
6 changed files with 8 additions and 8 deletions
+8
View File
@@ -106,6 +106,14 @@ scripts-auto:
echo '/usr/local/etc/rc.configure_firmware' >> ${DESTDIR}/$${SCRIPT}; \
done; \
fi
@if [ -d ${.CURDIR}/src/opnsense/service/conf/actions.d ]; then \
for SCRIPT in +POST_INSTALL +POST_DEINSTALL; do \
echo 'echo "Restarting configd"' >> ${DESTDIR}/$${SCRIPT}; \
echo 'if /usr/local/etc/rc.d/configd status > /dev/null; then' >> ${DESTDIR}/$${SCRIPT}; \
echo ' /usr/local/etc/rc.d/configd restart' >> ${DESTDIR}/$${SCRIPT}; \
echo 'fi' >> ${DESTDIR}/$${SCRIPT}; \
done; \
fi
install: check
@mkdir -p ${DESTDIR}${LOCALBASE}
View File
-4
View File
@@ -1,4 +0,0 @@
echo "restarting configd..."
if /usr/local/etc/rc.d/configd status > /dev/null; then
/usr/local/etc/rc.d/configd restart
fi
View File
View File
-4
View File
@@ -1,4 +0,0 @@
echo "Restarting configd"
if /usr/local/etc/rc.d/configd status > /dev/null; then
/usr/local/etc/rc.d/configd restart
fi