blob: 651bff4ea27121c95275c11e99ee2e105ed13111 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
set -e
fontdir="/usr/X11R6/lib/X11/fonts/local"
# $fontdir no longer exists;
# remove the FontPath from /etc/X11/XF86Config
if [ -f /etc/X11/XF86Config ]
then
echo "Removing FontPath \"$fontdir\" from /etc/X11/XF86Config ..."
tmpfile="/tmp/tempfile"
sed -e '/Section *"Files"/,/EndSection/{' \
-e "\\%^ *FontPath *[\"']$fontdir%d" \
-e '}' /etc/X11/XF86Config >> $tmpfile
mv -f $tmpfile /etc/X11/XF86Config
else
echo "/etc/X11/XF86Config not found!"
echo "You need to remove the line"
echo " FontPath \"$fontdir/:unscaled\""
echo "from /etc/X11/XF86Config yourself, otherwise X may fail to work."
fi
|