#!/bin/bash
CONFIG_PATH="/root/.config/nodka_lcd/lcd.config"
EDP_PARMFILE_PATH="/nodka_test/lcd_parameters/eDP/"
LVDS_PARMFILE_PATH="/nodka_test/lcd_parameters/LVDS/"

choose_button=$(grep choose_button $CONFIG_PATH)
choose_button=${choose_button:14}
echo $choose_button

edp_type=$(grep edp_type $CONFIG_PATH)
edp_type=${edp_type:9}
echo $edp_type

lvds_type=$(grep lvds_type $CONFIG_PATH)
lvds_type=${lvds_type:10}
echo $lvds_type

if [[ $choose_button = "button_eDP" ]];then
	cp $EDP_PARMFILE_PATH$edp_type /nodka_test/nodka_lcd
else
	cp $LVDS_PARMFILE_PATH$lvds_type /nodka_test/nodka_lcd
fi
sync


lcdparamservice


