xpp: init_card_4_30: add comment

Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9709 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
Tzafrir Cohen 2011-01-30 18:10:33 +00:00
parent a911c10f61
commit 5b09167d68

View File

@ -348,6 +348,11 @@ sub port_setup($) {
} else {
my $file = sprintf "/sys/bus/xpds/devices/%02d:%1d:%1d/pri_protocol",
$ENV{XBUS_NUMBER}, $ENV{UNIT_NUMBER}, $portno;
# The 'open' will fail if the port does not exist.
# (or rather: the XPD for it does not exist). While
# we only read this file to get the default E1/T1 value,
# if it does not exist, it also implies the commands sent would
# get nowhere. So we might as well quit now.
open(F, $file) || return;
$sysfs_pri_protocol = <F>;
close F;