summaryrefslogtreecommitdiff
path: root/build_tools
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-07-20 16:50:34 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-07-20 16:50:34 +0000
commit62fd20f8a589949542211eee6b2d9c4254917292 (patch)
tree40f0c9a6435584f40fca765f67faa6af0addcb98 /build_tools
parent9dde6151032e196d4eb3c71d8637d6a9062c6d0d (diff)
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@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10057 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'build_tools')
-rwxr-xr-xbuild_tools/live_dahdi4
1 files changed, 4 insertions, 0 deletions
diff --git a/build_tools/live_dahdi b/build_tools/live_dahdi
index 9392d5f..ab7e13c 100755
--- a/build_tools/live_dahdi
+++ b/build_tools/live_dahdi
@@ -224,6 +224,7 @@ usage() {
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 @@ genconf)
asterisk)
run_asterisk
;;
+symlink_ast)
+ ln -sf "$DESTDIR/etc/asterisk/dahdi-channels.conf" /etc/asterisk/
+ ;;
reload)
$0 unload
$0 load