#/bin/sh

# This script is used to launch asterisk from a desktop
# icon.  :)

# write logic to see if it's going yet or not, ala:
# sudo /etc/init.d/asterisk status
# Asterisk PBX is not running.
# (if needed?)

# add to /etc/sudoers.d/asterisk
# and call update-sudoers in postinst/postrm

# XXX does default setup allow sudo like this?
sudo /etc/init.d/asterisk start

# start asterisk console in an xterm :)
osso-xterm -e 'sudo /opt/asterisk/sbin/asterisk -vvv -r'

