P); rename $cfg, $cfg.".bak"; system("cp $temp $cfg"); unlink $temp; # Solaris specific: Rename our modified .xorg.conf to xorg.conf for it to be used if ((defined $ENV{PKG_INSTALL_ROOT}) && ($os_type =~ 'SunOS') && ($cfg =~ "$ENV{PKG_INSTALL_ROOT}/etc/X11/.xorg.conf")) { system("mv -f $cfg $ENV{PKG_INSTALL_ROOT}/etc/X11/xorg.conf"); } else { if (($os_type =~ 'SunOS') && ($cfg =~ '/etc/X11/.xorg.conf')) { system("mv -f $cfg /etc/X11/xorg.conf"); } } $config_count++; } } $config_count != 0 or die "Could not find any X11 configuration files.";