Hi, Something like this should work:
Hi and thanks for your suggestion. It may be a short while until I can test it as it seems I was a little premature in reporting success when running the ping command from /opt/bootlocal.sh.
while ! ping -c1 -W1 ipaddress ; do sleep 1 ; done
As far as I can tell the issue seems not to be the ping command but issuing it from bootlocal. My initial hope was that doing this would pause the boot-up when the remote ipaddress could not be contacted. The command is not backgrounded yet when the remote machine is powered down, bootlocal seems to proceed to the following command.
To test this all entries in bootlocal have been removed and a single entry made:
until [ -e /mnt/sda9 ] ; do sleep 1 ; done
sda9 does not exist on my test rig; the boot-up proceeds without a pause and continues to load the apps specified in .X.d. It will be helpful if someone confirm that the commands are constructed correctly and that bootlocal is not the place to attempt to conditionally pause the boot-up and subsequent loading of apps in .X.d.
However, following the suggestion by
gerald_clark and issuing the ping command from a file in .X.d does appear to have the desired outcome of not starting the app until the remote ipaddress can be contacted.