Skip to contentSkip to conversation

pci.rc [: missing ']'

PATCH Fumitoshi UKAI 2 participants 2 messages Mar 13, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

Usual /bin/sh complains [: missing ']'. This patch fixes this problem. May I apply this patch?

etc/hotplug/pci.rc +1 -2
diff -ruN hotplug-2004_03_11.orig/etc/hotplug/pci.rc hotplug-2004_03_11/etc/hotplug/pci.rc
@@ -42,8 +42,7 @@
     else
 	# 2.4 kernels
 	LISTER=`which pcimodules`
-	if [ "$LISTER" = "" -o ! -f /proc/bus/pci/devices
-		 -o ! -x pci.agent ]; then
+	if [ "$LISTER" = "" -o ! -f /proc/bus/pci/devices -o ! -x pci.agent ]; then
 	    echo $"** can't synthesize pci hotplug events"
 	    return
 	fi

Thanks,
Fumitoshi UKAI

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 4 lines · Fumitoshi UKAI

Hi,

Usual /bin/sh complains [: missing ']'. This patch fixes this problem. May I apply this patch?

Please feel free to apply this patch, and any others that you have that fix problems.

thanks,

greg k-h

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel