mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-06-13 05:25:07 +08:00
11 lines
242 B
Bash
Executable File
11 lines
242 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SSH_PARAM="/data/params/d/SshEnabled"
|
|
if [ -f "$SSH_PARAM" ] && [ "$(< $SSH_PARAM)" == "1" ]; then
|
|
echo "Enabling SSH"
|
|
/usr/comma/shims/systemctl start ssh
|
|
else
|
|
echo "Disabling SSH"
|
|
/usr/comma/shims/systemctl stop ssh
|
|
fi
|