SOURCES: go7007-hotplug.patch (NEW) - a patch for the hotplug scri...

Jakub Piotr Cłapa loc at toya.net.pl
Tue Aug 30 01:19:42 CEST 2005


jpc wrote:
> Index: SOURCES/go7007-hotplug.patch
> diff -u /dev/null SOURCES/go7007-hotplug.patch:1.1
> --- /dev/null	Mon Aug 29 14:13:55 2005
> +++ SOURCES/go7007-hotplug.patch	Mon Aug 29 14:13:50 2005
> @@ -0,0 +1,16 @@
> +--- wis-go7007-linux-0.9.6/hotplug/wis-ezusb.in~	2005-08-04 04:04:01.000000000 +0200
> ++++ wis-go7007-linux-0.9.6/hotplug/wis-ezusb.in	2005-08-28 20:02:17.147394816 +0200
> +@@ -84,10 +84,11 @@
> + fi
> + 
> + $LOADER $FLAGS -I $FIRMWARE
> ++$RETVAL=$?
> + 
> +-if [ $? -gt 0 ]; then
> ++if [ $RETVAL -gt 0 ]; then
> +     if [ -x /usr/bin/logger ]; then
> +-        /usr/bin/logger -t $0 "error $? returned by $LOADER $FLAGS -I $FIRMWARE"
> ++        /usr/bin/logger -t $0 "error $RETVAL returned by $LOADER $FLAGS -I $FIRMWARE"
> +     fi
> +     exit 1
> + fi

Is this change needed or just cosmetic? (I'm the one who wrote this but 
I'm not really sure ;)

-- 
Regards,
Jakub Piotr Cłapa



More information about the pld-devel-en mailing list