I do understand from the configs how to make a service restart in case of a fail but in this case a simple restart would always result in the same fail again and again
how can set a service to restart with alternative parameters?
i tried to edit the
.../dhcpcd.service.d/wait.conf from my Raspberry Pi to load a config file from my
/boot section with the -f option
but if there is no file, the service just fails and does not fallback to use the default config
so i need to know how to change the
wait.conf so it would restart the service on fail without the
-f /boot/dhcpcd_boot.conf option instead
to be clear, i just edited the wait.conf and attached the line above and did nothing else to any other part
i want to be able to specify a
dhcpcd_boot.conf with custom settings from a windows machine without using bonjour while in USB gadget RNDIS mode and without installing an DHCP server on the windows machine to SSH into the pi.
Core of my issue is, I want the dhcp service, which requests and assigns my network adapter an IP, to run a config off the fat32 /boot/ partition, but if the file is damaged or missing, the service fails to run and i am locked out of my raspberry pi, because it runs in gadget mode emulating an RNDIS without IP.