| | 12 | # We need to modify the glest.ini file in order for it to use a valid font |
| | 13 | # on PC-BSD |
| | 14 | |
| | 15 | rm /tmp/glest-new.ini >/dev/null 2>/dev/null |
| | 16 | FOUNDLINE="0" |
| | 17 | |
| | 18 | while read line |
| | 19 | do |
| | 20 | |
| | 21 | echo $line | grep Font >/dev/null 2>/dev/null |
| | 22 | if [ "$?" = "0" ] |
| | 23 | then |
| | 24 | if [ "$FOUNDLINE" = "0" ] |
| | 25 | then |
| | 26 | echo "FontConsole=-bitstream-bitstream charter-*-*-normal--*-*-*-*-*-*-*-* |
| | 27 | FontDisplay=-bitstream-bitstream charter-*-*-normal--*-*-*-*-*-*-*-* |
| | 28 | FontMenu=-bitstream-bitstream charter-*-*-normal--*-*-*-*-*-*-*-*" >> /tmp/glest-new.ini |
| | 29 | FOUNDLINE="1" |
| | 30 | fi |
| | 31 | else |
| | 32 | echo "$line" >> /tmp/glest-new.ini |
| | 33 | fi |
| | 34 | |
| | 35 | done < "${PBIDIR}/share/glest/glest.ini" |
| | 36 | |
| | 37 | mv /tmp/glest-new.ini ${PBIDIR}/share/glest/glest.ini |
| | 38 | |