Skip to content

Commit b8b3da0

Browse files
committed
firmware: fold this down to the portable opnsense-update -X call
1 parent 2921576 commit b8b3da0

File tree

2 files changed

+2
-25
lines changed

2 files changed

+2
-25
lines changed

src/opnsense/scripts/filter/update_bogons.sh

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,13 @@
11
#!/bin/sh
22

3+
URL="$(opnsense-update -X)/sets/bogons.txz"
34
DESTDIR="/usr/local/etc"
45
WORKDIR="/tmp/bogons"
56
FETCH="fetch -qT 30"
67
RETRIES=3
78

89
COMMAND=${1}
910

10-
CORE_ABI=$(opnsense-version -a)
11-
SYS_ABI=$(opnsense-verify -a)
12-
13-
# force amd64 here since bogons are not published elsewhere
14-
URLPREFIX="https://pkg.opnsense.org/${SYS_ABI%:*}:amd64/${CORE_ABI}"
15-
16-
if [ -n "$(opnsense-update -x)" ]; then
17-
# fix ABI mismatch for business mirror by using it directly
18-
URLPREFIX=$(opnsense-update -M)
19-
fi
20-
21-
URL="${URLPREFIX}/sets/bogons.txz"
22-
2311
echo "bogons update starting" | logger
2412

2513
while [ ${RETRIES} -gt 0 ]; do

src/opnsense/scripts/firmware/changelog.sh

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,7 @@ changelog_checksum()
4848

4949
changelog_url()
5050
{
51-
CORE_ABI=$(opnsense-version -x)
52-
SYS_ABI=$(opnsense-verify -a)
53-
54-
# force amd64 here since changelogs are not published elsewhere
55-
URLPREFIX="https://pkg.opnsense.org/${SYS_ABI%:*}:amd64/${CORE_ABI}"
56-
57-
if [ -n "$(opnsense-update -x)" ]; then
58-
# changelogs differ for business subscriptions
59-
URLPREFIX=$(opnsense-update -M)
60-
fi
61-
62-
echo "${URLPREFIX}/sets/changelog.txz"
51+
echo "$(opnsense-update -X)/sets/changelog.txz"
6352
}
6453

6554
changelog_fetch()

0 commit comments

Comments
 (0)