diff --git a/src/etc/rc b/src/etc/rc index b9d61c463..7bbc1a35e 100755 --- a/src/etc/rc +++ b/src/etc/rc @@ -200,7 +200,7 @@ rm /var/run/booting echo -n "Root file system: " mount | grep ' on / ' | awk '{ print $1 }' -/usr/local/opnsense/scripts/shell/banner.php +/usr/local/sbin/opnsense-shell banner /usr/local/etc/rc.subr.d/livemode exit 0 diff --git a/src/sbin/opnsense-shell b/src/sbin/opnsense-shell index 690c8d28b..264afdb9c 100755 --- a/src/sbin/opnsense-shell +++ b/src/sbin/opnsense-shell @@ -9,6 +9,7 @@ trap : 2 trap : 3 +CMD_BANNER="/usr/local/opnsense/scripts/shell/banner.php" CMD_DEFAULTS="/usr/local/opnsense/scripts/shell/defaults.php" CMD_FIRMWARE="/usr/local/opnsense/scripts/shell/firmware.sh" CMD_HALT="/usr/local/opnsense/scripts/shell/halt.php" @@ -54,6 +55,10 @@ fi # The invoke using "opnsense-shell cmd" will launch the # utility without presenting and looping the menu. case "${1}" in +banner) + shift + exec ${CMD_BANNER} "${@}" + ;; defaults) shift exec ${CMD_DEFAULTS} "${@}" @@ -173,6 +178,6 @@ case ${OPCODE} in ;; esac -/usr/local/opnsense/scripts/shell/banner.php +${CMD_BANNER} done