--- src/main/radiusd.c	2006-10-02 10:50:15.000000000 +0300
+++ src/main/radiusd.c	2006-10-02 11:58:45.000000000 +0300
@@ -148,8 +148,18 @@
 	memset(&mainconfig, 0, sizeof(mainconfig));
 	mainconfig.myip.af = AF_UNSPEC;
 	mainconfig.port = -1;
-	mainconfig.radiusd_conf = strdup("radiusd.conf");
 
+	/* This is a quick fix start-stop scripts for radrelay-radiusd
+	 * so if we are called as 'radiusd' then, config file
+	 * is 'radiusd.conf', if we are called as 'mokoko', then
+	 * config file is 'mokoko.conf', which will probably make things
+	 * easier.. will it ? Does it break something??
+	 * (-n option still overwrites the config file name)
+	 * A long comment for a 2 line patch.. </tuyan> 	
+	 */
+	snprintf(buffer, sizeof(buffer), "%s.conf",progname);
+	mainconfig.radiusd_conf = strdup(buffer);
+	
 #ifdef HAVE_SIGACTION
 	memset(&act, 0, sizeof(act));
 	act.sa_flags = 0 ;
