aredn/files/usr/local/bin/get_hardware_mfg

15 lines
236 B
Plaintext
Raw Normal View History

#!/bin/sh
CFG=/etc/board.json
name=""
. /usr/share/libubox/jshn.sh
[ -f $CFG ] || exit 1
json_init
json_load "$(cat ${CFG})"
json_select model
json_get_vars name
echo "$name" > /tmp/sysinfo/hardware_mfg
cat /tmp/sysinfo/hardware_mfg