Source-Changes-HG archive

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

[src/trunk]: src/etc/rc.d simplify more (from rudolf)



details:   https://anonhg.NetBSD.org/src/rev/d37d7620bf3e
branches:  trunk
changeset: 464793:d37d7620bf3e
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 23 14:45:38 2019 +0000

description:
simplify more (from rudolf)

diffstat:

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

diffs (35 lines):

diff -r e47c8c595a32 -r d37d7620bf3e etc/rc.d/sshd
--- a/etc/rc.d/sshd     Wed Oct 23 14:44:41 2019 +0000
+++ b/etc/rc.d/sshd     Wed Oct 23 14:45:38 2019 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: sshd,v 1.29 2018/05/26 19:18:11 riastradh Exp $
+# $NetBSD: sshd,v 1.30 2019/10/23 14:45:38 christos Exp $
 #
 
 # PROVIDE: sshd
@@ -20,7 +20,7 @@
 (
        keygen="/usr/bin/ssh-keygen"
        umask 022
-       while read type bits filename version name;  do
+       while read type bits filename;  do
                f="/etc/ssh/$filename"
                if [ -f "$f" ]; then
                        continue
@@ -33,10 +33,10 @@
                "${keygen}" -t "${type}" ${bitarg} -f "${f}" -N '' -q && \
                    printf "ssh-keygen: " && "${keygen}" -f "${f}" -l
        done << _EOF
-dsa    1024    ssh_host_dsa_key        2       DSA
-ecdsa  521     ssh_host_ecdsa_key      1       ECDSA
-ed25519        -1      ssh_host_ed25519_key    1       ED25519
-rsa    0       ssh_host_rsa_key        2       RSA
+dsa    1024    ssh_host_dsa_key
+ecdsa  521     ssh_host_ecdsa_key
+ed25519        -1      ssh_host_ed25519_key
+rsa    0       ssh_host_rsa_key
 _EOF
 )
 }



Home | Main Index | Thread Index | Old Index