[svn-commits] tzafrir: branch linux/tzafrir/sysfs r8752 - /linux/team/tzafrir/sysfs/build_t...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jun 8 09:49:57 CDT 2010


Author: tzafrir
Date: Tue Jun  8 09:49:54 2010
New Revision: 8752

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8752
Log:
Fix new udev rules from live_dahdi

* Fix generated udev rules to have proper variables
* Provide a stub for live_dahdi to add config to those udev rules.

(dahdi-tools changes will follow)

Modified:
    linux/team/tzafrir/sysfs/build_tools/genudevrules
    linux/team/tzafrir/sysfs/build_tools/live_dahdi

Modified: linux/team/tzafrir/sysfs/build_tools/genudevrules
URL: http://svnview.digium.com/svn/dahdi/linux/team/tzafrir/sysfs/build_tools/genudevrules?view=diff&rev=8752&r1=8751&r2=8752
==============================================================================
--- linux/team/tzafrir/sysfs/build_tools/genudevrules (original)
+++ linux/team/tzafrir/sysfs/build_tools/genudevrules Tue Jun  8 09:49:54 2010
@@ -39,5 +39,5 @@
 SUBSYSTEM${match}"dahdi",  OWNER="asterisk", GROUP="asterisk", MODE="0660"
 SUBSYSTEM${match}"dahdi_chans",  OWNER="asterisk", GROUP="asterisk", MODE="0660"
 SUBSYSTEM${match}"dahdi_chans",  SYMLINK+="dahdi/\$env{MINOR}"
-SUBSYSTEM=="dahdi_spans", RUN="/usr/share/dahdi/symlink_span -H '$sysfs{hardware_id}' -L '$sysfs{location}' -S '$sysfs{span_id}'"
+SUBSYSTEM=="dahdi_spans", RUN+="%E{DAHDI_INIT_DIR}/symlink_span -H '\$sysfs{hardware_id}' -L '\$sysfs{location}' -S '\$sysfs{span_id}'"
 EOF

Modified: linux/team/tzafrir/sysfs/build_tools/live_dahdi
URL: http://svnview.digium.com/svn/dahdi/linux/team/tzafrir/sysfs/build_tools/live_dahdi?view=diff&rev=8752&r1=8751&r2=8752
==============================================================================
--- linux/team/tzafrir/sysfs/build_tools/live_dahdi (original)
+++ linux/team/tzafrir/sysfs/build_tools/live_dahdi Tue Jun  8 09:49:54 2010
@@ -176,6 +176,10 @@
 	shift
 	cd "$TOOLS_DIR"; make config DESTDIR=$DESTDIR "$@"
 	mkdir -p $DESTDIR/etc/asterisk
+	cat >"$FIRMWARE_DIR/live-init.conf" <<EOF
+PATH="$PATH" # FIXME: add to existing \$PATH?
+export PATH
+EOF
 	;;
 rsync)
 	if [ $# -ne 2 ]; then




More information about the svn-commits mailing list