Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/rc.d Don't assume that $0 is this script.



details:   https://anonhg.NetBSD.org/src/rev/35631823d7ef
branches:  trunk
changeset: 525897:35631823d7ef
user:      enami <enami%NetBSD.org@localhost>
date:      Fri Apr 19 23:13:44 2002 +0000

description:
Don't assume that $0 is this script.

diffstat:

 etc/rc.d/sshd |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 3627a6c5712e -r 35631823d7ef etc/rc.d/sshd
--- a/etc/rc.d/sshd     Fri Apr 19 23:12:26 2002 +0000
+++ b/etc/rc.d/sshd     Fri Apr 19 23:13:44 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: sshd,v 1.15 2002/04/19 23:12:26 enami Exp $
+# $NetBSD: sshd,v 1.16 2002/04/19 23:13:44 enami Exp $
 #
 
 # PROVIDE: sshd
@@ -55,7 +55,7 @@
        if [ ! -f ${sshd_conf_dir}/ssh_host_key -o \
            ! -f ${sshd_conf_dir}/ssh_host_dsa_key -o \
            ! -f ${sshd_conf_dir}/ssh_host_rsa_key ]; then
-               $0 keygen
+               run_rc_command keygen
        fi
 }
 



Home | Main Index | Thread Index | Old Index