Compare commits
No commits in common. "v963" and "v961" have entirely different histories.
|
@ -1,22 +0,0 @@
|
|||
description "ssh daemon startup"
|
||||
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
||||
version 1.0
|
||||
emits none special
|
||||
|
||||
start on (runlevel [2345] and (started rpc))
|
||||
stop on runlevel [016]
|
||||
|
||||
console none
|
||||
|
||||
pre-start script
|
||||
if [ ! -f /etc/sysconfig/ssh/ssh_host_key ]; then
|
||||
ssh-keygen -N "" -t rsa1 -f /etc/sysconfig/ssh/ssh_host_key
|
||||
ssh-keygen -N "" -t rsa -f /etc/sysconfig/ssh/ssh_host_rsa_key
|
||||
ssh-keygen -N "" -t dsa -f /etc/sysconfig/ssh/ssh_host_dsa_key
|
||||
chmod 0600 /etc/sysconfig/ssh/*key*
|
||||
fi
|
||||
/sbin/CheckPid /var/run/sshd.pid
|
||||
end script
|
||||
|
||||
exec /usr/sbin/sshd -D
|
||||
|
32
init/genpkg
32
init/genpkg
|
@ -15,20 +15,18 @@
|
|||
#
|
||||
#
|
||||
|
||||
if [ -d /var/install/sysvinit* ]; then
|
||||
WDIR=`pwd`
|
||||
cd etc/init.d
|
||||
chmod 755 sshd
|
||||
mkdir rc{0,1,2,3,4,5,6}.d
|
||||
for i in 0 1 2 6; do
|
||||
cd rc$i.d
|
||||
ln -s ../sshd K75sshd
|
||||
cd ..
|
||||
done
|
||||
for i in 3 4 5; do
|
||||
cd rc$i.d
|
||||
ln -s ../sshd S15sshd
|
||||
cd ..
|
||||
done
|
||||
cd $WDIR
|
||||
fi
|
||||
WDIR=`pwd`
|
||||
cd etc/init.d
|
||||
chmod 755 sshd
|
||||
mkdir rc{0,1,2,3,4,5,6}.d
|
||||
for i in 0 1 2 6; do
|
||||
cd rc$i.d
|
||||
ln -s ../sshd K75sshd
|
||||
cd ..
|
||||
done
|
||||
for i in 3 4 5; do
|
||||
cd rc$i.d
|
||||
ln -s ../sshd S15sshd
|
||||
cd ..
|
||||
done
|
||||
cd $WDIR
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
#!/bin/bash
|
||||
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
||||
#dieses Framework wird im CVS Repository
|
||||
#:pserver:cvs.rainmaker-mm.de/RMM/cvs zur Verfügung gestellt
|
||||
#
|
||||
#Lage dieser Datei im Archiv: $Source$
|
||||
#
|
||||
#(c) Rainmaker MultiMedia OHG
|
||||
#This program is free software; you can redistribute it and/or
|
||||
#modify ist under the terms of the GNU General Public License
|
||||
#as published by the Free Software Foundation; either version
|
||||
#2 of the License, or (at your option) any later version.
|
||||
#
|
||||
#This program is distributed in the hope that it will be useful,
|
||||
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#See the GNU General Public License for more details.
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program; if not write to the Free Software Foundation,
|
||||
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
#Beschreibung:
|
||||
#Postinstallation Datei für openssh
|
||||
#
|
||||
#
|
||||
#Aufrufparameter:
|
||||
#
|
||||
#Letzte Änderung von: $Author$
|
||||
#Datum der letzten Änderung: $Date$
|
||||
#Version der Datei: $Revision$
|
||||
#
|
||||
|
||||
if getent passwd sshd >/dev/null; then
|
||||
userdel sshd
|
||||
fi
|
||||
if getent group sshd >/dev/null; then
|
||||
groupdel sshd
|
||||
fi
|
Loading…
Reference in New Issue
Block a user