From 4b6391ac4158e74f327d6e638a4fe89021fb466a Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Tue, 8 Mar 2022 13:52:50 +0100 Subject: [PATCH] replace teltonilka by omr --- .../linux/ipq40xx/base-files/etc/uci-defaults/01_mnf-info | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/target/linux/ipq40xx/base-files/etc/uci-defaults/01_mnf-info b/root/target/linux/ipq40xx/base-files/etc/uci-defaults/01_mnf-info index 8d1d13a7..0e5bf027 100644 --- a/root/target/linux/ipq40xx/base-files/etc/uci-defaults/01_mnf-info +++ b/root/target/linux/ipq40xx/base-files/etc/uci-defaults/01_mnf-info @@ -8,7 +8,7 @@ get_hw_info() { [ -n "$param" -a ${#param} == 12 ] && uci set "system"."@system[0]"."device_code"=$param hostname=${param:0:6} - [ -n "$hostname" -a ${#hostname} == 6 -a -z "$(uci -q get system.@system[0].hostname)" ] && uci set "system"."@system[0]"."hostname"=Teltonika-$hostname.com + [ -n "$hostname" -a ${#hostname} == 6 -a -z "$(uci -q get system.@system[0].hostname)" ] && uci set "system"."@system[0]"."hostname"=OpenMPTCProuter routername=${param:0:6} [ -n "$routername" -a ${#routername} == 6 -a -z "$(uci -q get system.@system[0].routername)" ] && uci set "system"."@system[0]"."routername"=$routername