StoopKid wrote: ↑
Sun Oct 22, 2017 9:57 pm
Ok. well then how do I auto-run a script or set dhcpcd.conf from the boot partition?
The attached RPi-Init will permit you to run a supplied script from the boot partition on the first boot.
RPi-Init is a Windows program that patches a Raspberry Pi image file to perform the following when booted the first time:
1. Optional: Enable SSH (without the need to create an 'ssh' file in the boot partition)
2. Optional: Permit Root Login Via SSH using a specified Password
(If 'Permit Root Login Via SSH' is not selected, initial login must be done through pi:raspberry)
3. Optional: Include Additional Script File (to be executed during the first boot)
No installation is required and no changes are made to your Windows system by RPi-Init.
In addition to patching a Raspberry Pi image file, RPi-Init creates a file named 'rpi_init' which must be copied to the
boot partition of the SD card prior to inserting the SD card in the Raspberry Pi. On the first boot, /boot/rpt_init is
executed prior to /etc/rc.local and then rpi_init is deleted.
Upon completion of the initial Raspberry Pi boot, the image on the SD card will be restored to its original virgin state.