mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
system: add an "import" syshook; closes #8325
Allow import hooks to be overwritten or manipulated. No functional changes but it allows to bootstrap a /conf/config.xml before opnsense-importer (making it skip import) or modifying the imported /conf/config.xml afterwards.
This commit is contained in:
parent
08718088ba
commit
11b7ca4d01
1
plist
1
plist
@ -135,6 +135,7 @@
|
||||
/usr/local/etc/rc.syshook.d/early/15-templates
|
||||
/usr/local/etc/rc.syshook.d/early/20-backup
|
||||
/usr/local/etc/rc.syshook.d/early/90-carp
|
||||
/usr/local/etc/rc.syshook.d/import/20-importer
|
||||
/usr/local/etc/rc.syshook.d/monitor/10-dpinger
|
||||
/usr/local/etc/rc.syshook.d/start/10-newwanip
|
||||
/usr/local/etc/rc.syshook.d/start/20-freebsd
|
||||
|
||||
@ -185,8 +185,8 @@ fi
|
||||
# set keyboard map if needed
|
||||
/etc/rc.d/syscons onestart
|
||||
|
||||
# run the config importer during early startup
|
||||
/usr/local/sbin/opnsense-importer -b
|
||||
# Execute the import syshook / plugin commands
|
||||
/usr/local/etc/rc.syshook import
|
||||
|
||||
# all sorts of maintenance tasks for /var
|
||||
/usr/local/etc/rc.subr.d/var
|
||||
|
||||
4
src/etc/rc.syshook.d/import/20-importer
Executable file
4
src/etc/rc.syshook.d/import/20-importer
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
# run the config importer during early startup
|
||||
/usr/local/sbin/opnsense-importer -b
|
||||
Loading…
x
Reference in New Issue
Block a user