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
c4ec7689
Commit
c4ec7689
authored
Mar 01, 2017
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: allow use of importer anytime, add conveniance aliases
parent
d1d200b6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
4 deletions
+30
-4
plist
plist
+2
-0
rc
src/etc/rc
+1
-1
rc.importer
src/etc/rc.importer
+19
-3
opnsense-importer
src/sbin/opnsense-importer
+4
-0
opnsense-installer
src/sbin/opnsense-installer
+4
-0
No files found.
plist
View file @
c4ec7689
...
@@ -912,6 +912,8 @@
...
@@ -912,6 +912,8 @@
/usr/local/sbin/ntpdate_sync_once.sh
/usr/local/sbin/ntpdate_sync_once.sh
/usr/local/sbin/openvpn.attributes.sh
/usr/local/sbin/openvpn.attributes.sh
/usr/local/sbin/opnsense-auth
/usr/local/sbin/opnsense-auth
/usr/local/sbin/opnsense-importer
/usr/local/sbin/opnsense-installer
/usr/local/sbin/ovpn-linkdown
/usr/local/sbin/ovpn-linkdown
/usr/local/sbin/ovpn-linkup
/usr/local/sbin/ovpn-linkup
/usr/local/sbin/ovpn_auth_verify
/usr/local/sbin/ovpn_auth_verify
...
...
src/etc/rc
View file @
c4ec7689
...
@@ -100,7 +100,7 @@ fi
...
@@ -100,7 +100,7 @@ fi
/etc/rc.d/syscons onestart
/etc/rc.d/syscons onestart
# run the config importer during early startup
# run the config importer during early startup
/usr/local/etc/rc.importer
||
exit
1
/usr/local/etc/rc.importer
-b
||
exit
1
# Enable console output if its muted.
# Enable console output if its muted.
/sbin/conscontrol mute off
>
/dev/null
/sbin/conscontrol mute off
>
/dev/null
...
...
src/etc/rc.importer
View file @
c4ec7689
...
@@ -27,6 +27,20 @@
...
@@ -27,6 +27,20 @@
INSTALL
=
"/.probe.for.install.media"
INSTALL
=
"/.probe.for.install.media"
MNT
=
"/tmp/hdrescue"
MNT
=
"/tmp/hdrescue"
DO_BOOT
=
while
getopts
b OPT
;
do
case
${
OPT
}
in
b
)
DO_BOOT
=
"-b"
;;
*
)
echo
"Unknown argument during import."
>
&2
exit
0
;;
esac
done
bootstrap_and_exit
()
bootstrap_and_exit
()
{
{
# ensure config directory structure
# ensure config directory structure
...
@@ -49,9 +63,11 @@ bootstrap_and_exit()
...
@@ -49,9 +63,11 @@ bootstrap_and_exit()
exit
0
exit
0
}
}
touch
${
INSTALL
}
2> /dev/null
if
[
-n
"
${
DO_BOOT
}
"
]
;
then
if
[
-f
${
INSTALL
}
-a
-f
/conf/config.xml
]
;
then
touch
${
INSTALL
}
2> /dev/null
if
[
-f
${
INSTALL
}
-a
-f
/conf/config.xml
]
;
then
bootstrap_and_exit
bootstrap_and_exit
fi
fi
fi
timeout_prompt
()
timeout_prompt
()
...
...
src/sbin/opnsense-importer
0 → 100755
View file @
c4ec7689
#!/bin/sh
# launch the real utility from here
/usr/local/sbin/opnsense-importer
"
${
@
}
"
src/sbin/opnsense-installer
0 → 100755
View file @
c4ec7689
#!/bin/sh
# launch the real utility from here
/usr/local/etc/rc.installer
"
${
@
}
"
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