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