diff options
author | Renato Botelho <renato@netgate.com> | 2016-06-01 07:58:44 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-06-01 07:58:44 -0300 |
commit | 58cc1dd9a16eac0125c6fce83aa28f26d7e13989 (patch) | |
tree | ca0fe9fefa372d00716143239aa60929868e8141 /etc | |
parent | df32d9feccb446f8f502a2dd2a5258d1dc313778 (diff) | |
download | FreeBSD-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/rc | 6 | ||||
-rw-r--r-- | etc/rc.shutdown | 6 |
2 files changed, 12 insertions, 0 deletions
@@ -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 |