From 62fd20f8a589949542211eee6b2d9c4254917292 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Wed, 20 Jul 2011 16:50:34 +0000 Subject: 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 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10057 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- build_tools/live_dahdi | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build_tools/live_dahdi') 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 -- cgit v1.2.3