Merged revisions 287195 via svnmerge from
[asterisk/asterisk.git] / contrib / init.d / rc.debian.asterisk
index a59431d..c2812b8 100755 (executable)
@@ -54,7 +54,7 @@ fi
 . /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