[svn-commits] qwell: branch 1.8 r287195 - /branches/1.8/contrib/init.d/rc.debian.asterisk
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Sep 16 17:04:43 CDT 2010
Author: qwell
Date: Thu Sep 16 17:04:38 2010
New Revision: 287195
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=287195
Log:
Don't fail when running the Debian init script directly (as one would normally do).
readlink apparently returns 1 when the arg isn't a symlink, which caused the script to exit.
(closes issue #17910)
Reported by: wurstsalat
Modified:
branches/1.8/contrib/init.d/rc.debian.asterisk
Modified: branches/1.8/contrib/init.d/rc.debian.asterisk
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/contrib/init.d/rc.debian.asterisk?view=diff&rev=287195&r1=287194&r2=287195
==============================================================================
--- branches/1.8/contrib/init.d/rc.debian.asterisk (original)
+++ branches/1.8/contrib/init.d/rc.debian.asterisk Thu Sep 16 17:04:38 2010
@@ -54,7 +54,7 @@
. /lib/lsb/init-functions
# Allow configuration overrides in /etc/default/asterisk
-CONFIG0=`readlink $0`
+CONFIG0=`readlink $0 || :` # readlink returns 1 when something isn't a symlink
if [ "$CONFIG0" = "" ]; then
CONFIGFILE=/etc/default/`basename $0`
else
More information about the svn-commits
mailing list