mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 02:54:38 +00:00
rc: allow use of importer anytime, add conveniance aliases
This commit is contained in:
parent
d1d200b6b4
commit
c4ec7689e8
2
plist
2
plist
@ -912,6 +912,8 @@
|
||||
/usr/local/sbin/ntpdate_sync_once.sh
|
||||
/usr/local/sbin/openvpn.attributes.sh
|
||||
/usr/local/sbin/opnsense-auth
|
||||
/usr/local/sbin/opnsense-importer
|
||||
/usr/local/sbin/opnsense-installer
|
||||
/usr/local/sbin/ovpn-linkdown
|
||||
/usr/local/sbin/ovpn-linkup
|
||||
/usr/local/sbin/ovpn_auth_verify
|
||||
|
||||
@ -100,7 +100,7 @@ fi
|
||||
/etc/rc.d/syscons onestart
|
||||
|
||||
# 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.
|
||||
/sbin/conscontrol mute off > /dev/null
|
||||
|
||||
@ -27,6 +27,20 @@
|
||||
INSTALL="/.probe.for.install.media"
|
||||
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()
|
||||
{
|
||||
# ensure config directory structure
|
||||
@ -49,9 +63,11 @@ bootstrap_and_exit()
|
||||
exit 0
|
||||
}
|
||||
|
||||
touch ${INSTALL} 2> /dev/null
|
||||
if [ -f ${INSTALL} -a -f /conf/config.xml ]; then
|
||||
bootstrap_and_exit
|
||||
if [ -n "${DO_BOOT}" ]; then
|
||||
touch ${INSTALL} 2> /dev/null
|
||||
if [ -f ${INSTALL} -a -f /conf/config.xml ]; then
|
||||
bootstrap_and_exit
|
||||
fi
|
||||
fi
|
||||
|
||||
timeout_prompt()
|
||||
|
||||
4
src/sbin/opnsense-importer
Executable file
4
src/sbin/opnsense-importer
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
# launch the real utility from here
|
||||
/usr/local/sbin/opnsense-importer "${@}"
|
||||
4
src/sbin/opnsense-installer
Executable file
4
src/sbin/opnsense-installer
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
# launch the real utility from here
|
||||
/usr/local/etc/rc.installer "${@}"
|
||||
Loading…
x
Reference in New Issue
Block a user