mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-06-12 21:14:29 +08:00
11 lines
208 B
Bash
Executable File
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
|