Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#3305 - nvidia and nvidia-legacy init script syntax error

Attached to Project: Arch Linux
Opened by Vardyr (Vardyr) - Friday, 07 October 2005, 08:13 GMT
Last edited by Dale Blount (dale) - Friday, 07 October 2005, 12:14 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

The init script included in the current nvidia and nvidia-legacy driver package has a syntax error on line 10, which throws up this error every time it is run:

/etc/rc.d/nvidia: line 10: [: missing `]'


All-in-all, line 10:
if [ $? -gt 0] ; then
should be
if [ $? -gt 0 ] ; then
(application/octet-stream)    nvidia (0.6 KiB)
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Sunday, 09 October 2005, 18:29 GMT
Reason for closing:  Implemented
Comment by Woody Gilk (Shadowhand) - Friday, 07 October 2005, 19:57 GMT
Actually, there's another bug too.

Line 10 should read:

if [ $? -lt 1 ] ; then

. Sorry for not catching this before I submitted it tpowa.
Comment by Woody Gilk (Shadowhand) - Friday, 07 October 2005, 20:36 GMT
Ignore my last comment. I'm attaching an updated script that fixes every bug.

Loading...