summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2002-02-26 13:00:07 +0000
committerdamien <damien@mandriva.com>2002-02-26 13:00:07 +0000
commitff85c7c97e630975fbfb660511d86101af9cf619 (patch)
tree3d6923f364e40609b38d8831b90bf691bce3d05a /perl-install/standalone
parent4e7676c1d9a5aa782c4a9db02b297f00bf8a5ddc (diff)
downloaddrakx-backup-do-not-use-ff85c7c97e630975fbfb660511d86101af9cf619.tar
drakx-backup-do-not-use-ff85c7c97e630975fbfb660511d86101af9cf619.tar.gz
drakx-backup-do-not-use-ff85c7c97e630975fbfb660511d86101af9cf619.tar.bz2
drakx-backup-do-not-use-ff85c7c97e630975fbfb660511d86101af9cf619.tar.xz
drakx-backup-do-not-use-ff85c7c97e630975fbfb660511d86101af9cf619.zip
corrected ttf/TTF and xfs restart
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/drakfont8
1 files changed, 5 insertions, 3 deletions
diff --git a/perl-install/standalone/drakfont b/perl-install/standalone/drakfont
index d6674fe1b..e808f625e 100755
--- a/perl-install/standalone/drakfont
+++ b/perl-install/standalone/drakfont
@@ -240,12 +240,12 @@ sub search_installed_fonts_full_path {
}
sub search_windows_font {
- foreach my $fstab_line (grep { /vfat/ } cat_('/etc/mtab') ) {
+ foreach my $fstab_line (grep { /vfat|ntfs/ } cat_('/etc/mtab') ) {
my $win_dir = (split('\s', $fstab_line))[1];
my @list_fonts_win = all("$win_dir/windows/fonts");
my @list_fonts_winnt = all("$win_dir/winnt/fonts");
my $nb_dir = @list_fonts_win + @list_fonts_winnt;
- foreach $_ ([\@list_fonts_win, "windows"], [\@list_fonts_winnt, "winnt"]) {
+ foreach ([\@list_fonts_win, "windows"], [\@list_fonts_winnt, "winnt"]) {
foreach my $i (@{$_->[0]}) {
if($interactive) {
if($nb_dir) { progress($pbar, 0.25/$nb_dir, _("parse all fonts")) } else {
@@ -351,7 +351,8 @@ sub put_font_dir {
$interactive and progress($pbar1, 0.01, _("done"));
$interactive and progress($pbar2, 0.10, _("True Type fonts installation"));
- system ("cd $drakfont_dir/tmp/tmp && cp *.ttf ../../ttf");
+ system ("cd $drakfont_dir/tmp/tmp ; for i in *.TTF; do mv -f $i `basename $i .TTF`.ttf; done");
+ system ("cd $drakfont_dir/tmp/tmp && cp *.ttf ../../ttf");
$interactive and progress($pbar2, 0.20, _("please wait during ttmkfdir..."));
system ("cd $drakfont_dir/ttf && $ttmkfdir > fonts.dir" );
$interactive and progress($pbar2, 0.10, _("True Type install done"));
@@ -411,6 +412,7 @@ sub put_font_dir {
print "\n\nretarting xfs......\n";
$interactive and progress($pbar3, 0.5 , _("Restart XFS"));
system ($restart_xfs);
+ system('kill -USR1 `/sbin/pidof xfs` 2&1>/dev/null');
$interactive and progress($pbar3, 0.30, _("done"));
}
}