Files
agnos-builder/userspace/root/usr/comma/set_ssh.sh
2026-04-30 18:15:09 -07:00

11 lines
208 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
fi