Commit 231f818c authored by Ad Schellevis's avatar Ad Schellevis

use configd's rc script after package upgrade

parent 1ea2e24c
...@@ -25,8 +25,9 @@ echo "Writing OPNsense version" ...@@ -25,8 +25,9 @@ echo "Writing OPNsense version"
mkdir -p /usr/local/opnsense/version mkdir -p /usr/local/opnsense/version
echo "%%REPO_VERSION%%-%%REPO_COMMENT%%" > /usr/local/opnsense/version/opnsense echo "%%REPO_VERSION%%-%%REPO_COMMENT%%" > /usr/local/opnsense/version/opnsense
if [ -f /var/run/configd.pid ]; then # restart configd if running
echo "Restarting configd" /usr/local/etc/rc.d/configd status > /dev/null
pkill -F /var/run/configd.pid if [ $? -eq 0 ]; then
/usr/local/opnsense/service/configd.py /usr/local/etc/rc.d/configd restart
fi fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment