summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-06-01 07:58:44 -0300
committerRenato Botelho <renato@netgate.com>2016-06-01 07:58:44 -0300
commit58cc1dd9a16eac0125c6fce83aa28f26d7e13989 (patch)
treeca0fe9fefa372d00716143239aa60929868e8141 /etc
parentdf32d9feccb446f8f502a2dd2a5258d1dc313778 (diff)
downloadFreeBSD-src-58cc1dd9a16eac0125c6fce83aa28f26d7e13989.zip
FreeBSD-src-58cc1dd9a16eac0125c6fce83aa28f26d7e13989.tar.gz
Call pfSense version of /etc/rc and /etc/rc.shutdown when they are present
Diffstat (limited to 'etc')
-rw-r--r--etc/rc6
-rw-r--r--etc/rc.shutdown6
2 files changed, 12 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index 576ddf9..c3167dc 100644
--- a/etc/rc
+++ b/etc/rc
@@ -28,6 +28,12 @@
# $FreeBSD$
#
+# Call pfSense version of this script when it's available
+if [ -f /etc/pfSense-rc ]; then
+ . /etc/pfSense-rc
+ exit 0
+fi
+
# System startup script run by init on autoboot
# or after single-user.
# Output and error are redirected to console by init,
diff --git a/etc/rc.shutdown b/etc/rc.shutdown
index 15779c7..8105f76 100644
--- a/etc/rc.shutdown
+++ b/etc/rc.shutdown
@@ -27,6 +27,12 @@
# $FreeBSD$
#
+# Call pfSense version of this script when it's available
+if [ -f /etc/pfSense-rc.shutdown ]; then
+ . /etc/pfSense-rc.shutdown
+ exit 0
+fi
+
# Site-specific closing actions for daemons run by init on shutdown,
# or before going single-user from multi-user.
# Output and errors are directed to console by init, and the
OpenPOWER on IntegriCloud