Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
. /lib/functions.sh
. /usr/share/libubox/jshn.sh
. /etc/openwrt_release
uci_add_list() {
local PACKAGE="$1"
local CONFIG="$2"
local OPTION="$3"
# dmesg
[ 0.000000] Linux version 5.15.137 (builder@buildhost) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r23630-842932a63d) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 Tue Nov 14 13:38:11 2023
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[ 0.000000] MIPS: machine is Ubiquiti LiteBeam AC Gen2
[ 0.000000] SoC: Atheros AR9342 rev 2
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges: