#943530 dahdi-source: The initialisation-script dahdi_span_types fails to access the correct spantypes-file

#943530#5
Date:
2019-10-25 20:22:56 UTC
From:
To:
192c192
< 	find $DEVICES -follow -maxdepth 1 -name spantype | \
---
255c255
< 		cat "$device/spantype" | while read st; do
---
281c281
< 	attr_file="$device/spantype"
---
338c338
< 		cat "$device/spantype" | while read spantype; do
---
----------------

/var/log/messages before applying the path: error messages
----------------
Oct 25 20:23:19 produktiv 'dahdi_handle_device'[619]: D: Running '/usr/share/dahdi/handle_device.d/10-span-types'
Oct 25 20:23:19 produktiv 'dahdi_handle_device'[631]: D: Running '/usr/share/dahdi/handle_device.d/10-span-types'
Oct 25 20:23:19 produktiv 'dahdi_handle_device'[631]: cat: '/sys/devices/pci0000:00/0000:00:1e.0/0000:07:01.0/pci:0000:07:01.0/spantype': No such file or directory
Oct 25 20:23:19 produktiv 'dahdi_handle_device'[619]: cat: '/sys/devices/pci0000:00/0000:00:1e.0/0000:07:01.0/pci:0000:07:01.0/spantype': No such file or directory
Oct 25 20:23:19 produktiv 'dahdi_handle_device'[631]: D: Running '/usr/share/dahdi/handle_device.d/20-span-assignments'
Oct 25 20:23:19 produktiv 'dahdi_handle_device'[619]: D: Running '/usr/share/dahdi/handle_device.d/20-span-assignments'
Oct 25 20:23:19 produktiv 'dahdi_handle_device'[631]: using '/etc/dahdi/assigned-spans.conf'
Oct 25 20:23:19 produktiv 'dahdi_handle_device'[619]: using '/etc/dahdi/assigned-spans.conf'
----------------

/var/log/messages after the patch
----------------
Oct 25 21:00:36 produktiv 'dahdi_handle_device'[611]: D: Running '/usr/share/dahdi/handle_device.d/10-span-types'
Oct 25 21:00:36 produktiv 'dahdi_handle_device'[623]: D: Running '/usr/share/dahdi/handle_device.d/10-span-types'
Oct 25 21:00:36 produktiv 'dahdi_handle_device'[623]: D: Running '/usr/share/dahdi/handle_device.d/20-span-assignments'
Oct 25 21:00:36 produktiv 'dahdi_handle_device'[611]: D: Running '/usr/share/dahdi/handle_device.d/20-span-assignments'
Oct 25 21:00:36 produktiv 'dahdi_handle_device'[611]: using '/etc/dahdi/assigned-spans.conf'
Oct 25 21:00:36 produktiv 'dahdi_handle_device'[623]: using '/etc/dahdi/assigned-spans.conf'
----------------

I don't know the consequences of the error and the patch,
because I could not yet finish my installation.
Regards
Matthias