2 |
|
|
3 |
push_firstboot 10_graphic_driver |
push_firstboot 10_graphic_driver |
4 |
push_firstboot 10_graphic_resolution |
push_firstboot 10_graphic_resolution |
5 |
|
push_firstboot 10_graphic_depth |
6 |
|
|
7 |
push_config 10_graphic_driver |
push_config 10_graphic_driver |
8 |
push_config 10_graphic_resolution |
push_config 10_graphic_resolution |
213 |
import_resource cfg_graphic "${serial}" resolution "${monitor_resolution}" |
import_resource cfg_graphic "${serial}" resolution "${monitor_resolution}" |
214 |
fi |
fi |
215 |
} |
} |
216 |
|
|
217 |
|
push_firstboot_10_graphic_depth() |
218 |
|
{ |
219 |
|
local serial="$1" |
220 |
|
# just set to 'auto' |
221 |
|
local graphic_depth="auto" |
222 |
|
|
223 |
|
if [[ ${MCORE_GRAPHIC_HWDETECT_DEEP} = 1 ]] |
224 |
|
then |
225 |
|
# just set it to 'auto' |
226 |
|
decho "graphic_depth='${graphic_depth}'" |
227 |
|
import_resource cfg_graphic "${serial}" depth "${graphic_depth}" |
228 |
|
else |
229 |
|
# default to runtime autodetection |
230 |
|
graphic_driver="auto" |
231 |
|
import_resource cfg_graphic "${serial}" depth "${graphic_depth}" |
232 |
|
fi |
233 |
|
} |