Files
2026-10-19 21:58:47 -07:00

11 lines
219 B
Bash
Executable File

#!/bin/bash
SSH_PARAM="/data/params/d/SshEnabled"
if [ -f "$SSH_PARAM" ] && [ "$(< $SSH_PARAM)" == "1" ]; then
echo "Enabling SSH"
systemctl start ssh
else
echo "Disabling SSH"
systemctl stop ssh.socket ssh
fi