clear_config_var used to reset HDMI resolution.

This commit is contained in:
Simon Long 2016-12-01 14:44:07 +00:00
parent a79f20557f
commit 4149c738c2

View File

@ -1241,9 +1241,9 @@ do_resolution() {
fi fi
if [ $STATUS -eq 0 ]; then if [ $STATUS -eq 0 ]; then
if [ $MODE -eq 0 ]; then if [ $MODE -eq 0 ]; then
sed $CONFIG -i -e "s/^hdmi_force_hotplug/#hdmi_force_hotplug/" clear_config_var hdmi_force_hotplug $CONFIG
sed $CONFIG -i -e "s/^hdmi_group/#hdmi_group/" clear_config_var hdmi_group $CONFIG
sed $CONFIG -i -e "s/^hdmi_mode/#hdmi_mode/" clear_config_var hdmi_mode $CONFIG
else else
set_config_var hdmi_force_hotplug 1 $CONFIG set_config_var hdmi_force_hotplug 1 $CONFIG
set_config_var hdmi_group $GROUP $CONFIG set_config_var hdmi_group $GROUP $CONFIG