Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
4461ea23
Commit
4461ea23
authored
Sep 16, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: order syshooks by name
parent
4e16a075
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
rc.syshook
src/etc/rc.syshook
+10
-1
No files found.
src/etc/rc.syshook
View file @
4461ea23
...
@@ -25,6 +25,15 @@
...
@@ -25,6 +25,15 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
# SUCH DAMAGE.
# Scripts are sorted and should adhere to the
# following rule of thumb: "dd-identifier.level", for
# core package syshooks generally "20-mycorehook.start"
# and for plugin packages rather "50-mypluginhook.stop".
#
# It could be useful for the user to order scripts
# or set a higher/lower priority in case some
# use case requires a slightly different setup.
SYSDIR
=
"/usr/local/etc/rc.syshook.d"
SYSDIR
=
"/usr/local/etc/rc.syshook.d"
SYSLEVEL
=
"
${
1
}
"
SYSLEVEL
=
"
${
1
}
"
...
@@ -39,7 +48,7 @@ if [ ! -d ${SYSDIR} ]; then
...
@@ -39,7 +48,7 @@ if [ ! -d ${SYSDIR} ]; then
fi
fi
# collect all matching scripts
# collect all matching scripts
SYSHOOKS
=
$(
find
${
SYSDIR
}
-type
f
-name
"*.
${
SYSLEVEL
}
"
)
SYSHOOKS
=
$(
find
-s
${
SYSDIR
}
-type
f
-name
"*.
${
SYSLEVEL
}
"
)
for
SYSHOOK
in
${
SYSHOOKS
}
;
do
for
SYSHOOK
in
${
SYSHOOKS
}
;
do
# extract syshook origin
# extract syshook origin
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment