2020-10-16 00:32:37 +08:00
|
|
|
#! /usr/bin/env bash
|
|
|
|
# vim: set filetype=sh ts=4 sw=4 sts=4 et:
|
|
|
|
if [ "$(uname -s)" = Linux ] ; then
|
|
|
|
test -x /etc/init.d/ssh && /etc/init.d/ssh start
|
|
|
|
test -x /etc/init.d/syslog-ng && /etc/init.d/syslog-ng start
|
|
|
|
else
|
|
|
|
# for BSD
|
|
|
|
test -x /etc/rc.d/sshd && /etc/rc.d/sshd onestart
|
|
|
|
fi
|
|
|
|
|
2020-11-05 23:27:24 +08:00
|
|
|
if [ "$1" = "--sandbox" ]; then
|
2020-11-13 02:01:29 +08:00
|
|
|
echo "The Bastion sandbox container is running, you can now connect to its port 22 (probably remapped to another port on the host)"
|
2020-11-05 23:27:24 +08:00
|
|
|
fi
|
2020-10-16 00:32:37 +08:00
|
|
|
while : ; do
|
|
|
|
sleep 3600
|
|
|
|
done
|