Re: How do i find out what configuration file XFree is currently using?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ævar Arnfjörð Bjarmason ha scritto:

I'm making a script to collect these files, it is to run on alien machines and i need something more elegant than this:

"cp /etc/X11/XF86Config-4 ./etc/X11/XF86Config-4 || cp /etc/X11/XF86Config ./etc/X11/XF86Config-4"

_______________________________________________
XFree86 mailing list
XFree86@xxxxxxxxxxx
http://XFree86.Org/mailman/listinfo/xfree86
---
[Quipo ISP - Questa E-mail e' stata controllata dal programma Declude Virus]
[Quipo ISP - This E-mail was scanned for viruses by Declude Virus]




Hi!
I would do this:
if [ -f /etc/X11/XF86Config-4 ]; then
 MYVAR=/etc/X11/XF86Config-4
else
 MYVAR=/etc/X11/XF86Config
fi
cp $MYVAR ./etc/X11/XF86Config-4

see you!


--- [Quipo ISP - Questa E-mail e' stata controllata dal programma Declude Virus] [Quipo ISP - This E-mail was scanned for viruses by Declude Virus]

_______________________________________________
XFree86 mailing list
XFree86@xxxxxxxxxxx
http://XFree86.Org/mailman/listinfo/xfree86

[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux