diff options
Diffstat (limited to 'contrib/init.d/rc.gentoo.asterisk')
-rwxr-xr-x | contrib/init.d/rc.gentoo.asterisk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/init.d/rc.gentoo.asterisk b/contrib/init.d/rc.gentoo.asterisk index efc87afc7..161bdd0ee 100755 --- a/contrib/init.d/rc.gentoo.asterisk +++ b/contrib/init.d/rc.gentoo.asterisk @@ -9,7 +9,7 @@ start() { # Check if Asterisk is already running. If it is, then bug out, because # starting safe_asterisk when Asterisk is running is very bad. VERSION=`${ASTSBINDIR}/asterisk -rx 'core show version'` - if [ "${VERSION:0:8}" = "Asterisk" ]; then # otherwise "Unable t" + if [ "`echo $VERSION | cut -c 1-8`" = "Asterisk" ]; then echo "Asterisk is already running. $0 will exit now." exit 1 fi |