[svn-commits] tzafrir: linux/trunk r10057 - /linux/trunk/build_tools/live_dahdi

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jul 20 11:50:38 CDT 2011


Author: tzafrir
Date: Wed Jul 20 11:50:34 2011
New Revision: 10057

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10057
Log:
live_dahdi: symlink_ast

live_dahdi: Add a new command: symlink_ast, to make the system's
/etc/asterisk/dahdi-channels.conf a symlink to the one generated by
'reload' / 'genconf'.

If the system dahdi-channels.conf is a generated one and has not edited,
there's no real harm with running this.

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

Modified:
    linux/trunk/build_tools/live_dahdi

Modified: linux/trunk/build_tools/live_dahdi
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/build_tools/live_dahdi?view=diff&rev=10057&r1=10056&r2=10057
==============================================================================
--- linux/trunk/build_tools/live_dahdi (original)
+++ linux/trunk/build_tools/live_dahdi Wed Jul 20 11:50:34 2011
@@ -224,6 +224,7 @@
 	echo "$me xpp-firm       (Reset and load xpp firmware)"
 	echo "$me genconf        dahdi_genconf; dahdi_cfg"
 	echo "$me asterisk       /etc/init.d/asterisk start"
+	echo "$me symlink_ast    symlink dahdi-channels.conf"
 	echo "$me rsync TARGET   (copy filea to /tmp/live in host TARGET)"
 	echo "$me exec  COMMAND  (Run COMMAND in 'live' environment)"
 	echo ""
@@ -299,6 +300,9 @@
 asterisk)
 	run_asterisk
 	;;
+symlink_ast)
+	ln -sf "$DESTDIR/etc/asterisk/dahdi-channels.conf" /etc/asterisk/
+	;;
 reload)
 	$0 unload
 	$0 load




More information about the svn-commits mailing list