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() send_log()
{ {
nr=$(db get hw.board.serialNumber) nr=$(db get hw.board.serial_number)
hw=$(db get hw.board.hardware) hw=$(db get hw.board.model_name)
fam=$(db get hw.board.iopVerFam) fam=$(db get hw.board.iopVerFam)
sw=$(db get hw.board.iopVersion) sw=$(db get hw.board.iopVersion)
server=$(/sbin/uci get system.crashlog.server) 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. # more memory to work with. normally this would do nothing.
cat >/dev/null cat >/dev/null
nr=$(db get hw.board.serialNumber) nr=$(db get hw.board.serial_number)
hw=$(db get hw.board.hardware) hw=$(db get hw.board.model_name)
fam=$(hw.board.iopVerFam) fam=$(hw.board.iopVerFam)
sw=$(db get hw.board.iopVersion) sw=$(db get hw.board.iopVersion)

View file

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

View file

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