projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[package] openssh: add ESSENTIAL_PROCESSES
[openwrt/svn-archive/archive.git]
/
net
/
openssh
/
files
/
sshd.init
diff --git
a/net/openssh/files/sshd.init
b/net/openssh/files/sshd.init
index b5dfcd07d0b6475772b0adde02488c2284b1de9d..79454397454487798bcbac790e4145776ae1e952 100644
(file)
--- a/
net/openssh/files/sshd.init
+++ b/
net/openssh/files/sshd.init
@@
-3,9
+3,11
@@
START=50
STOP=50
START=50
STOP=50
+ESSENTIAL_PROCESSES="ssh sshd"
SERVICE_USE_PID=1
SERVICE_USE_PID=1
+
start() {
for type in rsa dsa; do {
# check for keys
start() {
for type in rsa dsa; do {
# check for keys
@@
-13,9
+15,8
@@
start() {
[ ! -f $key ] && {
# generate missing keys
[ -x /usr/bin/ssh-keygen ] && {
[ ! -f $key ] && {
# generate missing keys
[ -x /usr/bin/ssh-keygen ] && {
- /usr/bin/ssh-keygen -N '' -t $type -f $key 2>&- >&- && exec /etc/rc.common "$initscript" start
- } &
- exit 0
+ /usr/bin/ssh-keygen -N '' -t $type -f $key 2>&- >&-
+ }
}
}; done
user_exists sshd 22 || user_add sshd 22 22 sshd /var/empty
}
}; done
user_exists sshd 22 || user_add sshd 22 22 sshd /var/empty