aboutsummaryrefslogtreecommitdiff
path: root/container/init
blob: 49ee84032e195bc8947bbf7c150428b2767b5748 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-FileCopyrightText: 2026 Nicholas Rodrigues Lordello <[email protected]>

if [ ! -f /run/.dbxenv ]; then
	echo "ERROR: not in a devbox" >&2
	exit 1
fi

for rc in /etc/dbx/rc.d/*; do
	if [ ! -f "$rc" ] || [ ! -x "$rc" ]; then
		continue
	fi
	"$rc" || printf '%s: %s failed (%d)\n' "$0" "$rc" "$?" >&2
done

exec /usr/bin/tini /usr/sbin/sshd -- -D -e