1 |
# $Id$ |
# $Id$ |
2 |
|
|
3 |
|
push_firstboot 10_graphic_driver |
4 |
|
push_firstboot 10_graphic_resolution |
5 |
|
|
6 |
push_config 10_graphic_driver |
push_config 10_graphic_driver |
7 |
push_config 10_graphic_resolution |
push_config 10_graphic_resolution |
8 |
push_config 10_graphic_depth |
push_config 10_graphic_depth |
129 |
value=$(mysqldo "select hz from cfg_graphic where serial='${serial}'") |
value=$(mysqldo "select hz from cfg_graphic where serial='${serial}'") |
130 |
control_client "${serial}" set graphic.resolution "${value}" |
control_client "${serial}" set graphic.resolution "${value}" |
131 |
} |
} |
132 |
|
|
133 |
|
push_firstboot_10_graphic_driver() |
134 |
|
{ |
135 |
|
local serial="$1" |
136 |
|
local graphic_driver |
137 |
|
|
138 |
|
nsslsay_queue_init |
139 |
|
nsslsay_queue_add "nocolors" |
140 |
|
nsslsay_queue_add "get hardware.detect driver graphic" |
141 |
|
graphic_driver=$(control_client "${serial}" run-queue) |
142 |
|
if [[ -n ${graphic_driver} ]] |
143 |
|
then |
144 |
|
decho "graphic_driver='${graphic_driver}'" |
145 |
|
import_resource cfg_graphic "${serial}" module "${graphic_driver}" |
146 |
|
else |
147 |
|
decho "no graphic_driver found" |
148 |
|
fi |
149 |
|
} |
150 |
|
|
151 |
|
push_firstboot_10_graphic_resolution() |
152 |
|
{ |
153 |
|
local serial="$1" |
154 |
|
local monitor_info |
155 |
|
local monitor_resolution |
156 |
|
|
157 |
|
nsslsay_queue_init |
158 |
|
nsslsay_queue_add "nocolors" |
159 |
|
nsslsay_queue_add "get hardware.detect info monitor" |
160 |
|
monitor_info=$(control_client "${serial}" run-queue) |
161 |
|
monitor_resolution="${monitor_info##*;}" |
162 |
|
if [[ -n ${monitor_resolution} ]] |
163 |
|
then |
164 |
|
decho "monitor_resolution='${monitor_resolution}'" |
165 |
|
import_resource cfg_graphic "${serial}" resolution "${monitor_resolution}" |
166 |
|
else |
167 |
|
decho "no monitor_resolution found" |
168 |
|
fi |
169 |
|
} |