davidferguson / pibakery-blocks

All the blocks for the Pi Bakery program
GNU General Public License v3.0
242 stars 86 forks source link

SSH enabler/disabler #91

Open zejjnt opened 5 years ago

elgertam commented 5 years ago

@zejjnt I like this PR, but shouldn't the "DISABLE" option run rm -f /boot/ssh? As is, rm will return 1 if the file does not exist, and I'm not sure how PiBakery will handle that failure.

jvolker commented 5 years ago

Why not using raspi-config as described here?: https://www.raspberrypi.org/forums/viewtopic.php?p=1160522&sid=4ccce1296424353b958557405ad70785#p1160522

sudo raspi-config nonint do_ssh