Skip to content

Commit

Permalink
F_CHKMODEL: fix ls991,vs986,f500 detection
Browse files Browse the repository at this point in the history
related to issue #17
  • Loading branch information
steadfasterX committed Jul 30, 2018
1 parent a104e9d commit 124170b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt.func
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 124170b

Please sign in to comment.