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"
mkdir -p /usr/local/opnsense/version
echo "%%REPO_VERSION%%-%%REPO_COMMENT%%" > /usr/local/opnsense/version/opnsense
if [ -f /var/run/configd.pid ]; then
echo "Restarting configd"
pkill -F /var/run/configd.pid
/usr/local/opnsense/service/configd.py
# restart configd if running
/usr/local/etc/rc.d/configd status > /dev/null
if [ $? -eq 0 ]; then
/usr/local/etc/rc.d/configd restart
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