projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
openssh patches from below0
[openwrt.git]
/
obsolete-buildroot
/
sources
/
openssh.server.S50sshd-ipk
1
#!/bin/sh
2
#
3
# sshd Starts sshd.
4
#
5
6
mkdir
-p
/
var
/
lock
7
mkdir
-p
/
var
/
empty
8
chmod
600
/
var
/
empty
9
10
umask
077
11
12
start
() {
13
echo -n
"Starting sshd: "
14
/
usr
/
sbin
/
sshd
15
touch
/
var
/
lock
/
sshd
16
echo
"OK"
17
}
18
stop
() {
19
echo -n
"Stopping sshd: "
20
killall sshd
21
rm
-f
/
var
/
lock
/
sshd
22
echo
"OK"
23
}
24
restart
() {
25
stop
26
start
27
}
28
29
case
"
$1
"
in
30
start
)
31
start
32
;;
33
stop
)
34
stop
35
;;
36
restart|reload
)
37
restart
38
;;
39
*)
40
echo
$
"Usage:
$0
{start|stop|restart}"
41
exit
1
42
esac
43
44
exit
$?
45
This page took
0.041079 seconds
and
5
git commands to generate.