[svn-commits] sruffell: branch linux/2.4 r9666 - /linux/branches/2.4/drivers/dahdi/xpp/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jan 20 23:29:13 CST 2011


Author: sruffell
Date: Thu Jan 20 23:29:09 2011
New Revision: 9666

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9666
Log:
xpp: Fixes init error for PRI devices with < 4 ports

Fixes a regression singce r8873: if pri_protocol is not explicitly set
(in /etc/dahdi/xpp.conf) and the device has (licences for) less than 4
"PRI" (E1/T1) ports, the initialization script will attempt to read from
a non-existing SysFS file, and bail out, resulting in a the device
failing to initialize.

For those non-existing ports we can just skip that part of the
initialization. So we just skip it.

Work around: explicitly set pri_protocol to E1 or T1, as needed.

Xorcom Rev: 8047. Ticket: 1334.

Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=9430

Modified:
    linux/branches/2.4/drivers/dahdi/xpp/init_card_4_30

Modified: linux/branches/2.4/drivers/dahdi/xpp/init_card_4_30
URL: http://svnview.digium.com/svn/dahdi/linux/branches/2.4/drivers/dahdi/xpp/init_card_4_30?view=diff&rev=9666&r1=9665&r2=9666
==============================================================================
--- linux/branches/2.4/drivers/dahdi/xpp/init_card_4_30 (original)
+++ linux/branches/2.4/drivers/dahdi/xpp/init_card_4_30 Thu Jan 20 23:29:09 2011
@@ -348,7 +348,7 @@
 	} else {
 		my $file = sprintf "/sys/bus/xpds/devices/%02d:%1d:%1d/pri_protocol",
 				$ENV{XBUS_NUMBER}, $ENV{UNIT_NUMBER}, $portno;
-		open(F, $file) || die "$0: Failed opening '$file'";
+		open(F, $file) || return;
 		$sysfs_pri_protocol = <F>;
 		close F;
 		chomp $sysfs_pri_protocol;




More information about the svn-commits mailing list