10 Dec
2002
10 Dec
'02
16:29
On Tuesday 10 December 2002 17.14, zentara wrote:
#!/bin/bash if [ $# -ne "1" ] then file='/etc/X11/XF86Config-normal' else file='/etc/X11/XF86Config-3d' fi cp $file /etc/X11/XF86Config startx exit
I would probably change this to <code> #!/bin/bash if [ $# -ne "1" ] then file='XF86Config-normal' else file='XF86Config-3d' fi startx -- -xf86config $file </code> since you probably don't want to open /etc/X11 for writing by regular user, and you probably also don't want to run as root