[arch-commits] Commit in crda/trunk (crda.install)

Thomas Bächler thomas at archlinux.org
Tue Apr 7 17:08:58 EDT 2009


    Date: Tuesday, April 7, 2009 @ 17:08:58
  Author: thomas
Revision: 34188

Fix an error message during .install

Modified:
  crda/trunk/crda.install

--------------+
 crda.install |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: crda.install
===================================================================
--- crda.install	2009-04-07 20:56:19 UTC (rev 34187)
+++ crda.install	2009-04-07 21:08:58 UTC (rev 34188)
@@ -10,7 +10,7 @@
   # In an upgrade from 1.0.1-1 or older, the wireless-regdom file moves from the crda package
   # to the new wireless-regdb package. If the user changed the file, it is save to overwrite the one
   # from wireless-regdb by the user-defined one
-  if [ $(vercmp $2 1.0.1-2) -lt 0 -a -f /etc/conf.d/wireless-regdom.pacorig -a -n "$(grep -v ^# /etc/conf.d/wireless-regdom.pacorig | grep -v ^$)" ]; then
+  if [ $(vercmp $2 1.0.1-2) -lt 0 -a -f /etc/conf.d/wireless-regdom.pacorig -a -n "$(grep -v ^# /etc/conf.d/wireless-regdom.pacorig 2>/dev/null | grep -v ^$)" ]; then
     mv /etc/conf.d/wireless-regdom.pacorig /etc/conf.d/wireless-regdom
   fi
 }



More information about the arch-commits mailing list