autorun script in /boot


3 posts
by RichardBronosky » Mon Mar 20, 2017 5:54 am
I discovered that if you `touch /boot/ssh` it will enable and start `ssh` on boot.

I'm wondering what other magic can be accomplished with this FAT32 partition. It would be AWESOME if there was a name I could give a bash script to get it to run. This would be a big help to people who are looking to set up headless systems, but don't have access to the ext4 partitions on macOS or Windows.
-- Bruno Bronosky
2x Raspberry Pi 512MB
2x Raspberry Pi 3
2x Raspberry Pi Zero W
2x Raspberry Pi camera module
User avatar
Posts: 61
Joined: Thu Feb 14, 2013 5:38 pm
Location: Atlanta, GA, USA
by rpdom » Mon Mar 20, 2017 6:05 am
There's nothing like that available for the FAT partition yet. Maybe later.

At present you're limited to:
1. Editing config.txt to set certain system parameters.
2. Editing cmdline.txt to set Linux boot paramters.
3. Creating a file called "ssh" or "ssh.txt" to enable the SSH server.
4. Creating a file called "wpa_supplicant.conf" with WiFi settings in.

I'm sure other options will appear in the future for those who are OSly challenged ;-)
User avatar
Posts: 10460
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK
by RichardBronosky » Tue Mar 21, 2017 2:57 am
I initially asked this question in 2013. I'm not convinced someone else will do it. I'm ready to get it done. It's just so difficult contributing to projects that are not on GitHub.
-- Bruno Bronosky
2x Raspberry Pi 512MB
2x Raspberry Pi 3
2x Raspberry Pi Zero W
2x Raspberry Pi camera module
User avatar
Posts: 61
Joined: Thu Feb 14, 2013 5:38 pm
Location: Atlanta, GA, USA