Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH enabler/disabler #91

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions sshenable/sshenable.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "sshenable",
"text": "%1 SSH server at boot",
"script": "sshenable.sh",
"args": [
{
"type": "menu",
"options": ["Enable", "Disable"]
}
],
"network": false,
"continue": true,
"type": "software",
"category":"software",
"supportedOperatingSystems": [
"raspbian-pibakery.img"
"raspbian-lite-pibakery.img"
],
"shortDescription":"Enable or disable the built in SSH server.",
"longDescription":"By default, the built in SSH server does not run on startup. Using this block you can enable it, or disable it if you have already enabled it."
}
8 changes: 8 additions & 0 deletions sshenable/sshenable.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

if [ "$1" == "Enable" ]
then
touch /boot/ssh
else
rm /boot/ssh
fi