From owner-freebsd-bugs Wed Dec 19 16:40:13 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7C96037B419 for ; Wed, 19 Dec 2001 16:40:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBK0e3u13188; Wed, 19 Dec 2001 16:40:03 -0800 (PST) (envelope-from gnats) Date: Wed, 19 Dec 2001 16:40:03 -0800 (PST) Message-Id: <200112200040.fBK0e3u13188@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ceri Subject: [matt@soffen.com: Re: conf/33018: Patch for RC (add multiple SSHD configurations)] Reply-To: Ceri Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR conf/33018; it has been noted by GNATS. From: Ceri To: freebsd-gnats-submit@freebsd.org Cc: Subject: [matt@soffen.com: Re: conf/33018: Patch for RC (add multiple SSHD configurations)] Date: Thu, 20 Dec 2001 00:35:54 +0000 --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Adding to audit trail. Ceri --YZ5djTAD1cGYuMQK Content-Type: message/rfc822 Content-Disposition: inline Return-path: Envelope-to: setantae@localhost Delivery-date: Wed, 19 Dec 2001 23:50:04 +0000 Received: from localhost.private.submonkey.net. ([127.0.0.1] helo=localhost) by rhadamanth.private.submonkey.net with esmtp (Exim 3.33 #1) id 16GqTM-0002H1-00 for setantae@localhost; Wed, 19 Dec 2001 23:50:04 +0000 Delivered-To: setantae@eidosnet.co.uk Received: from mail.eidosnet.co.uk [195.40.67.19] by localhost with POP3 (fetchmail-5.8.17) for setantae@localhost (single-drop); Wed, 19 Dec 2001 23:50:04 +0000 (GMT) Received: (qmail 77202 invoked from network); 19 Dec 2001 23:40:03 -0000 Received: from jupiter.easily.co.uk ([213.239.5.5]) (envelope-sender ) by nectarine.mail.uk.easynet.net (qmail-ldap-1.03) with SMTP for ; 19 Dec 2001 23:40:03 -0000 Received: from gateway.soffen.com (gateway.soffen.com [64.65.195.194]) by jupiter.easily.co.uk (Postfix) with SMTP id 3DC901242 for ; Wed, 19 Dec 2001 23:39:05 +0000 (GMT) Received: (qmail 56031 invoked from network); 19 Dec 2001 23:39:56 -0000 Received: from callie.soffen.com (HELO callie) (64.65.195.183) by gateway.soffen.com with SMTP; 19 Dec 2001 23:39:56 -0000 Message-Id: <4.2.0.58.20011219183926.00a50c80@pop3.norton.antivirus> X-Sender: matt/mail.soffen.com@pop3.norton.antivirus X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Wed, 19 Dec 2001 18:39:45 -0500 To: Ceri From: Matthew Soffen Subject: Re: conf/33018: Patch for RC (add multiple SSHD configurations) In-Reply-To: <20011219220850.GA7690@rhadamanth> References: <20011219213424.7762.qmail@truffle0.soffen.com> <20011219213424.7762.qmail@truffle0.soffen.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed At 10:08 PM 12/19/2001 +0000, you wrote: >Matthew, I think you forgot to attach the patch ;) > >Ceri D'oh! That's what I get for sending it when I was in a rush. --- /etc/rc.orig Mon Nov 20 07:03:04 2000 +++ /etc/rc Wed Dec 19 16:07:12 2001 @@ -453,6 +453,20 @@ echo -n ' sshd'; ${sshd_program:-/usr/sbin/sshd} ${sshd_flags} fi + while + [ $sshd -lt $sshd_count ] + do + eval enab=\$sshd_enable_$sshd + case ${enab} in + [Yy][Ee][Ss]) + if [ -x ${sshd_program:-/usr/sbin/sshd} ]; then + echo -n ' sshd'$sshd; + ${sshd_program:-/usr/sbin/sshd} ${sshd_flags}_$sshd + fi + ;; + esac + sshd=`expr $sshd + 1` + done ;; esac --- /etc/defaults/rc.conf.orig Mon Nov 20 07:03:04 2000 +++ /etc/defaults/rc.conf Wed Dec 19 16:23:59 2001 @@ -149,9 +149,11 @@ pppoed_provider="*" # Provider and ppp(8) config file entry. pppoed_flags="-P /var/run/pppoed.pid" # Flags to pppoed (if enabled). pppoed_interface="fxp0" # The interface that pppoed runs on. +sshd_count=1 sshd_enable="NO" # Enable sshd -sshd_program="/usr/sbin/sshd" # path to sshd, if you want a different one. -sshd_flags="" # Additional flags for sshd. +sshd_enable_1="YES" # Enable sshd Conf 1 +sshd_program_1="/usr/sbin/sshd" # path to sshd, if you want a different one. +sshd_flags_1="" # Additional flags for sshd. ### Network Time Services options: ### timed_enable="NO" # Run the time daemon (or NO). --YZ5djTAD1cGYuMQK-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message