From 124170bc838794997d1cdadc6cff192157ef53aa Mon Sep 17 00:00:00 2001 From: steadfasterX Date: Mon, 30 Jul 2018 15:24:02 +0200 Subject: [PATCH] F_CHKMODEL: fix ls991,vs986,f500 detection related to issue #17 --- salt.func | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt.func b/salt.func index cd5bff9..3772bcf 100644 --- a/salt.func +++ b/salt.func @@ -528,7 +528,7 @@ F_CHKMODEL(){ F_LOG "$FUNCNAME: started" model_name) LGMODEL=${i/*:/};; esac done - KDZMODEL=$(dd if=$KFILE bs=512 count=10000 2>&1| strings | egrep -m1 'LG-[L|H|V]') + KDZMODEL=$(dd if=$KFILE bs=512 count=10000 2>&1| strings | egrep -m1 -o '(LGLS[0-9]{3})|(LGVS[0-9]{3})|(LG-[H|F][0-9]{3})') if [ -z "$KDZMODEL" ] ;then RES="${LGMODEL}:unknown" else