repo.or.cz
/
buildroot-gz.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
package/nodejs: security bump for 0.10.x to version 0.10.42
[buildroot-gz.git]
/
package
/
openssh
/
S50sshd
blob
c15114257f875c5162acf5eb62497fed4f4c255a
1
#!/bin/sh
2
#
3
# sshd Starts sshd.
4
#
5
6
# Make sure the ssh-keygen progam exists
7
[
-f
/
usr
/
bin
/
ssh-keygen
]
||
exit
0
8
9
# Create any missing keys
10
/
usr
/
bin
/
ssh-keygen
-A
11
12
umask
077
13
14
start
() {
15
printf
"Starting sshd: "
16
/
usr
/
sbin
/
sshd
17
touch
/
var
/
lock
/
sshd
18
echo
"OK"
19
}
20
stop
() {
21
printf
"Stopping sshd: "
22
killall sshd
23
rm
-f
/
var
/
lock
/
sshd
24
echo
"OK"
25
}
26
restart
() {
27
stop
28
start
29
}
30
31
case
"
$1
"
in
32
start
)
33
start
34
;;
35
stop
)
36
stop
37
;;
38
restart|reload
)
39
restart
40
;;
41
*)
42
echo
"Usage:
$0
{start|stop|restart}"
43
exit
1
44
esac
45
46
exit
$?
47