[Pkg-voip-commits] r7505 - in /dahdi-tools/trunk/debian: changelog patches/hardware_rescan patches/series

tzafrir-guest at alioth.debian.org tzafrir-guest at alioth.debian.org
Sun Aug 16 18:51:48 UTC 2009


Author: tzafrir-guest
Date: Sun Aug 16 18:51:47 2009
New Revision: 7505

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=7505
Log:
Patch hardware_rescan: backport Dahdi::Hardware->rescan()

Added:
    dahdi-tools/trunk/debian/patches/hardware_rescan
Modified:
    dahdi-tools/trunk/debian/changelog
    dahdi-tools/trunk/debian/patches/series

Modified: dahdi-tools/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/dahdi-tools/trunk/debian/changelog?rev=7505&op=diff
==============================================================================
--- dahdi-tools/trunk/debian/changelog (original)
+++ dahdi-tools/trunk/debian/changelog Sun Aug 16 18:51:47 2009
@@ -5,8 +5,9 @@
   [ Tzafrir Cohen ]
   * New upstream release.
   * Patch bashism: fixes bashism in waitfor_xpds (Closes: #535865).
-
- -- Tzafrir Cohen <tzafrir.cohen at xorcom.com>  Sun, 05 Jul 2009 21:57:50 +0300
+  * Patch hardware_rescan: backport Dahdi::Hardware->rescan()
+
+ -- Tzafrir Cohen <tzafrir.cohen at xorcom.com>  Sun, 16 Aug 2009 21:44:06 +0300
 
 dahdi-tools (1:2.2.0~rc3-1) unstable; urgency=low
 

Added: dahdi-tools/trunk/debian/patches/hardware_rescan
URL: http://svn.debian.org/wsvn/pkg-voip/dahdi-tools/trunk/debian/patches/hardware_rescan?rev=7505&op=file
==============================================================================
--- dahdi-tools/trunk/debian/patches/hardware_rescan (added)
+++ dahdi-tools/trunk/debian/patches/hardware_rescan Sun Aug 16 18:51:47 2009
@@ -1,0 +1,30 @@
+xpp: Dahdi::Hardware->rescan() - refresh hardware list
+    
+Allow refreshing the list of hardware even after the initial scan.
+(E.g. a script that resets firmware for Astribanks)
+
+Source: http://svn.digium.com/svn/dahdi/tools/trunk@7012
+
+--- a/xpp/perl_modules/Dahdi/Hardware.pm
++++ b/xpp/perl_modules/Dahdi/Hardware.pm
+@@ -183,6 +183,20 @@ sub scan($) {
+ 	}
+ }
+ 
++=head1 rescan
++
++Rescan for devices. In case new devices became available since the script
++has started.
++
++=cut
++
++sub rescan($) {
++	my $pack = shift || die;
++
++	$hardware_scanned = 0;
++	$pack->scan();
++}
++
+ sub import {
+ 	Dahdi::Hardware->scan unless grep(/\bnoscan\b/i, @_);
+ }

Modified: dahdi-tools/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-voip/dahdi-tools/trunk/debian/patches/series?rev=7505&op=diff
==============================================================================
--- dahdi-tools/trunk/debian/patches/series (original)
+++ dahdi-tools/trunk/debian/patches/series Sun Aug 16 18:51:47 2009
@@ -3,3 +3,4 @@
 zaptel_perl
 echocan_oslec
 bashism
+hardware_rescan




More information about the Pkg-voip-commits mailing list