handle_device: don't fail if no config files
Allow the udev rule to work well even if there's no span-types.conf Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
This commit is contained in:
parent
00af777a97
commit
52488d66fa
@ -49,8 +49,12 @@ add)
|
||||
|
||||
# Don't block udev for too long
|
||||
(
|
||||
span_types set "/sys$DEVPATH"
|
||||
span_assignments add "/sys$DEVPATH"
|
||||
if [ -r "$DAHDICONFDIR/span-types.conf" ]; then
|
||||
span_types set "/sys$DEVPATH"
|
||||
fi
|
||||
if [ -r "$DAHDICONFDIR/pinned-spans.conf" ]; then
|
||||
span_assignments add "/sys$DEVPATH"
|
||||
fi
|
||||
) 2>&1 < /dev/null | $LOGGER &
|
||||
;;
|
||||
remove)
|
||||
|
Loading…
Reference in New Issue
Block a user