57 |
# special memory case |
# special memory case |
58 |
get_hwinfo_memory() |
get_hwinfo_memory() |
59 |
{ |
{ |
60 |
local memory=$(hwinfo --memory | grep "Memory Size" | cut -d: -f2 | sed "s:\ ::") |
local memory=$(hwinfo --memory | grep "Memory Size" | sed 's:.*\:\ \(.*\):\1:') |
61 |
echo "${memory}" |
echo "${memory}" |
62 |
} |
} |
63 |
|
|
65 |
# special smp case |
# special smp case |
66 |
get_hwinfo_smp() |
get_hwinfo_smp() |
67 |
{ |
{ |
68 |
local smp=$(hwinfo --smp | grep "SMP support:" | cut -d: -f2 | sed "s:\ ::") |
local smp=$(hwinfo --smp | grep "SMP support:" | sed 's:.*\:\ \(.*\):\1:') |
69 |
echo "${smp}" |
echo "${smp}" |
70 |
} |
} |
71 |
|
|
282 |
# setup modprobe conf too |
# setup modprobe conf too |
283 |
[[ ! -d $(dirname ${uvesafb_config}) ]] && install -d $(dirname ${uvesafb_config}) |
[[ ! -d $(dirname ${uvesafb_config}) ]] && install -d $(dirname ${uvesafb_config}) |
284 |
cat > ${uvesafb_config} << EOF |
cat > ${uvesafb_config} << EOF |
285 |
# This file sets the parameters for uvesafb module. |
# This file sets the parameters for uvesafb module. |
286 |
# The following format should be used: |
# The following format should be used: |
287 |
# options uvesafb mode_option=<xres>x<yres>[-<bpp>][@<refresh>] scroll=<ywrap|ypan|redraw> ... |
# options uvesafb mode_option=<xres>x<yres>[-<bpp>][@<refresh>] scroll=<ywrap|ypan|redraw> ... |
288 |
# |
# |