udev scripts now read /etc/dahdi/init.conf
Added two override variables in init.conf: * DAHDI_UDEV_DISABLE_DEVICES * DAHDI_UDEV_DISABLE_SPANS Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> Acked-by: Russ Meyerriecks <rmeyerriecks@digium.com>
This commit is contained in:
parent
a4217f6977
commit
10a6622774
@ -25,6 +25,16 @@ set -e
|
|||||||
|
|
||||||
#echo >&2 "$0($ACTION): DEBUG($# args): '$*'"
|
#echo >&2 "$0($ACTION): DEBUG($# args): '$*'"
|
||||||
|
|
||||||
|
# Do we have a configuration?
|
||||||
|
if [ -f /etc/dahdi/init.conf ]; then
|
||||||
|
. /etc/dahdi/init.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$DAHDI_UDEV_DISABLE_DEVICES" = 'yes' ]; then
|
||||||
|
echo "DAHDI_UDEV_DISABLE_DEVICES=yes. Skip $DEVPATH" | $LOGGER
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if we can safely do our job
|
# Check if we can safely do our job
|
||||||
if [ ! -f /sys/module/dahdi/parameters/auto_assign_spans ]; then
|
if [ ! -f /sys/module/dahdi/parameters/auto_assign_spans ]; then
|
||||||
echo "Old driver (no auto_assign_spans parameter). Skip $DEVPATH" | $LOGGER
|
echo "Old driver (no auto_assign_spans parameter). Skip $DEVPATH" | $LOGGER
|
||||||
|
@ -17,3 +17,7 @@
|
|||||||
#XPP_FIRMWARE_DIR=/usr/share/dahdi
|
#XPP_FIRMWARE_DIR=/usr/share/dahdi
|
||||||
#XPP_HOTPLUG_DISABLED=yes
|
#XPP_HOTPLUG_DISABLED=yes
|
||||||
#XPP_HOTPLUG_DAHDI=yes
|
#XPP_HOTPLUG_DAHDI=yes
|
||||||
|
|
||||||
|
# Disable udev handling:
|
||||||
|
#DAHDI_UDEV_DISABLE_DEVICES=yes
|
||||||
|
#DAHDI_UDEV_DISABLE_SPANS=yes
|
||||||
|
10
span_config
10
span_config
@ -25,6 +25,16 @@ set -e
|
|||||||
|
|
||||||
#echo >&2 "$0($ACTION): DEBUG($# args): '$*'"
|
#echo >&2 "$0($ACTION): DEBUG($# args): '$*'"
|
||||||
|
|
||||||
|
# Do we have a configuration?
|
||||||
|
if [ -f /etc/dahdi/init.conf ]; then
|
||||||
|
. /etc/dahdi/init.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$DAHDI_UDEV_DISABLE_SPANS" = 'yes' ]; then
|
||||||
|
echo "DAHDI_UDEV_DISABLE_SPANS=yes. Skip $DEVPATH" | $LOGGER
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# Can we pass a different value so we can use
|
# Can we pass a different value so we can use
|
||||||
# alternate (testing) configuration?
|
# alternate (testing) configuration?
|
||||||
# Meanwhile, make it hard-coded.
|
# Meanwhile, make it hard-coded.
|
||||||
|
Loading…
Reference in New Issue
Block a user