8 lines
745 B
Bash
8 lines
745 B
Bash
#!/bin/sh
|
|
# B12R (board, Alpine primary root): install nftables + dnsmasq from a local repo (no network) + aurora-router. Writes only p27. Idempotent.
|
|
set -e; T=/tmp/b12r
|
|
rm -rf /var/cache/b12r; mkdir -p /var/cache/b12r; tar xzf $T/b12r-pkgs.tar.gz -C /var/cache/b12r
|
|
apk add --no-network --allow-untrusted --repositories-file /dev/null --repository /var/cache/b12r/pkgs nftables dnsmasq > $T/apk.log 2>&1 || { tail -15 $T/apk.log; echo "INSTALL FAIL"; exit 1; }
|
|
tail -2 $T/apk.log; tar xzf $T/b12r-overlay.tar.gz -C /; rm -rf /var/cache/b12r; sync
|
|
rc-update show default | grep -q aurora-router && echo "WARN: aurora-router is in a runlevel"
|
|
echo "nft=$(nft --version) dnsmasq=$(dnsmasq --version | head -1 | cut -d' ' -f3)"; echo "INSTALL OK"
|