clean up db and use new variables names

This commit is contained in:
Oussama Ghorbel 2020-01-23 14:33:49 +01:00
parent 8815e230ed
commit 871a3c3907
4 changed files with 6 additions and 6 deletions

View file

@ -4,8 +4,8 @@ START=99
send_log()
{
nr=$(db get hw.board.serialNumber)
hw=$(db get hw.board.hardware)
nr=$(db get hw.board.serial_number)
hw=$(db get hw.board.model_name)
fam=$(db get hw.board.iopVerFam)
sw=$(db get hw.board.iopVersion)
server=$(/sbin/uci get system.crashlog.server)

View file

@ -50,8 +50,8 @@ cat >$TMP_CORE
# more memory to work with. normally this would do nothing.
cat >/dev/null
nr=$(db get hw.board.serialNumber)
hw=$(db get hw.board.hardware)
nr=$(db get hw.board.serial_number)
hw=$(db get hw.board.model_name)
fam=$(hw.board.iopVerFam)
sw=$(db get hw.board.iopVersion)

View file

@ -12,7 +12,7 @@ if [ -e "/proc/nvram/BoardId" ]; then
echo "0xfffffff2" >/proc/nvram/ulBoardStuffOption
db -q batch <<-EOT
set hw.board.hasDect=1
set hw.board.has_dect=1
commit hw.board
EOT
fi

View file

@ -382,7 +382,7 @@ populate_netmodes() {
fi
done
local hardware=$(db get hw.board.hardware)
local hardware=$(db get hw.board.model_name)
local keys lang desc exp exclude support
for mode in $(ls $MODEDIR); do