User avatar
RichardBronosky
Posts: 66
Joined: Thu Feb 14, 2013 5:38 pm
Location: Atlanta, GA, USA

autorun script in /boot

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
1x RPi 1 (B)
1x RPi 1+ (B)
2x RPi 2
6x RPi 3
4x RPi Zero W
2x RPi camera module
https://github.com/RichardBronosky/pi-gen-extender
https://github.com/RichardBronosky/raspbian-boot-setup

User avatar
rpdom
Posts: 11851
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK

Re: autorun script in /boot

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
RichardBronosky
Posts: 66
Joined: Thu Feb 14, 2013 5:38 pm
Location: Atlanta, GA, USA

Re: autorun script in /boot

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
1x RPi 1 (B)
1x RPi 1+ (B)
2x RPi 2
6x RPi 3
4x RPi Zero W
2x RPi camera module
https://github.com/RichardBronosky/pi-gen-extender
https://github.com/RichardBronosky/raspbian-boot-setup

Return to “Raspbian”

Who is online

Users browsing this forum: No registered users and 16 guests