Commit 36c4a67e authored by Franco Fichtner's avatar Franco Fichtner

firmware: fetch changelogs on console update, too

parent a54b359f
......@@ -36,6 +36,9 @@ echo "This will automatically fetch all available updates, apply them,"
echo "and reboot if necessary."
echo
# always fetch changelogs, we may want to display them at one point
/usr/local/opnsense/scripts/firmware/changelog.sh fetch || true
if [ -f ${UPGRADE} ]; then
NAME=$(cat ${UPGRADE})
......
......@@ -10,12 +10,7 @@ COMMAND=${1}
CORE_ABI=$(cat /usr/local/opnsense/version/opnsense.abi 2> /dev/null)
SYS_ABI=$(opnsense-verify -a 2> /dev/null)
URL="https://pkg.opnsense.org"
if [ -n "${CORE_ABI}" -a -n "${SYS_ABI}" ]; then
# expand url to new mirror layout per release
URL="${URL}/${SYS_ABI}/${CORE_ABI}"
fi
URL="${URL}/sets/bogons.txz"
URL="https://pkg.opnsense.org/${SYS_ABI}/${CORE_ABI}/sets/bogons.txz"
echo "rc.update_bogons is starting up" | logger
......
......@@ -42,9 +42,7 @@ changelog_fetch()
CORE_ABI=$(cat /usr/local/opnsense/version/opnsense.abi 2> /dev/null)
SYS_ABI=$(opnsense-verify -a 2> /dev/null)
URL="https://pkg.opnsense.org"
URL="${URL}/${SYS_ABI}/${CORE_ABI}"
URL="${URL}/sets/changelog.txz"
URL="https://pkg.opnsense.org/${SYS_ABI}/${CORE_ABI}/sets/changelog.txz"
rm -rf ${WORKDIR}
mkdir -p ${WORKDIR}
......
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