diff options
author | Colin Watson <cjwatson@debian.org> | 2008-02-01 21:56:43 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2008-02-01 21:56:43 +0000 |
commit | e1de8aeae4cb2665e20af41fe1a9f57b555ba934 (patch) | |
tree | d6f04a8a3b022a6021a301724453711876b7110a /debian/openssh-server.init | |
parent | d577a83a31e9938ca46fe15ef0bfb2b09722832a (diff) |
* Allow passing temporary daemon parameters on the init script's command
line, e.g. '/etc/init.d/ssh start "-o PermitRootLogin=yes"' (thanks,
Marc Haber; closes: #458547).
Diffstat (limited to 'debian/openssh-server.init')
-rw-r--r-- | debian/openssh-server.init | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/openssh-server.init b/debian/openssh-server.init index 7706b6c39..67b204789 100644 --- a/debian/openssh-server.init +++ b/debian/openssh-server.init | |||
@@ -22,6 +22,10 @@ fi | |||
22 | 22 | ||
23 | . /lib/lsb/init-functions | 23 | . /lib/lsb/init-functions |
24 | 24 | ||
25 | if [ -n "$2" ]; then | ||
26 | SSHD_OPTS="$SSHD_OPTS $2" | ||
27 | fi | ||
28 | |||
25 | # Are we running from init? | 29 | # Are we running from init? |
26 | run_by_init() { | 30 | run_by_init() { |
27 | ([ "$previous" ] && [ "$runlevel" ]) || [ "$runlevel" = S ] | 31 | ([ "$previous" ] && [ "$runlevel" ]) || [ "$runlevel" = S ] |