82
consolefont=`echo $RET | sed -e 's/^cyr=//'`
83
if apt-install console-cyrillic; then
84
cyrconfig=/target/etc/console-cyrillic
85
# format of the consolefont is:
86
# style,size,encoding,layout(option1 option2)
87
style=`echo $consolefont | sed -e 's/,.*$//'`
88
size=`echo $consolefont | sed -e 's/^[^,]*,\([^,]*\),.*$/\1/'`
89
encoding=`echo $consolefont | sed -e 's/^[^,]*,[^,]*,\([^,]*\),.*$/\1/'`
90
layoutopts=`echo $consolefont | sed -e 's/^[^,]*,[^,]*,[^,]*,\([^)]*)\).*$/\1/'`
91
layout=`echo $layoutopts | sed -e 's/(.*)$//'`
92
options=`echo $layoutopts | sed -e 's/.*(//' -e 's/).*//'`
93
modify_cyrconfig style "$style"
94
modify_cyrconfig size "$size"
95
modify_cyrconfig encoding "$encoding"
96
modify_cyrconfig layout "$layout"
97
modify_cyrconfig options "$options"
98
sed -e 's/^.*Bootsetup: .*$/# Bootsetup: YES/' $cyrconfig > $cyrconfig.tmp && \
99
mv $cyrconfig.tmp $cyrconfig
100
sed -e 's/^.*Debconf: .*$/# Debconf: NO/' $cyrconfig > $cyrconfig.tmp && \
101
mv $cyrconfig.tmp $cyrconfig
82
apt-install console-cyrillic || true