]> arthur.barton.de Git - ngircd.git/commitdiff
Run "basename" on your script name when it is a symlink as well.
authorAlexander Barton <alex@barton.de>
Tue, 26 Jul 2005 19:30:54 +0000 (19:30 +0000)
committerAlexander Barton <alex@barton.de>
Tue, 26 Jul 2005 19:30:54 +0000 (19:30 +0000)
contrib/Debian/ngircd.init

index dbc7e87f72bd28f9a6726c7c4963f63053a1daf4..00dfa90ca975df927463d130bbfc9f1132530fcb 100755 (executable)
@@ -2,7 +2,7 @@
 #
 # ngIRCd start and stop script for Debian-based systems
 #
-# $Id: ngircd.init,v 1.5 2005/06/01 21:51:11 alex Exp $
+# $Id: ngircd.init,v 1.5.2.1 2005/07/26 19:30:54 alex Exp $
 #
 
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
@@ -11,7 +11,8 @@ NAME=ngIRCd
 DESC="IRC daemon"
 PARAMS=""
 
-test -h "$0" && BASENAME=`readlink $0` || BASENAME=`basename $0`
+test -h "$0" && me=`readlink $0` || me="$0"
+BASENAME=`basename $me`
 
 test -f /etc/default/$BASENAME && . /etc/default/$BASENAME