distribution/packages/sysutils/autostart/sources/daemons/001-ssh
fewtarius 3917e2bad3
* Add support for adjusting gamma/contrast/saturation/hue - Thanks to @christianhaitian for the idea and reference implementation!
* Fix a bug that prevents the ssh key from being deployed on a dev build.
* Add drm tool package.
2023-04-01 00:20:39 +00:00

13 lines
356 B
Text
Executable file

STATE=$(get_setting ssh.enabled)
SVC="sshd"
CONF="sshd.conf"
DAEMONS=("sshd")
# Prepare authorized keys if they exist
if [ ! -e "/storage/.ssh/authorized_keys" ] && \
[ -e "/usr/config/ssh/authorized_keys" ]
then
mkdir -p /storage/.ssh/
cp /usr/config/ssh/authorized_keys /storage/.ssh/authorized_keys
chmod 0610 /storage/.ssh/authorized_keys
fi