Commit c4ec7689 authored by Franco Fichtner's avatar Franco Fichtner

rc: allow use of importer anytime, add conveniance aliases

parent d1d200b6
...@@ -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
......
...@@ -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
......
...@@ -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()
......
#!/bin/sh
# launch the real utility from here
/usr/local/sbin/opnsense-importer "${@}"
#!/bin/sh
# launch the real utility from here
/usr/local/etc/rc.installer "${@}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment