From 914285037a0393e04fa6ea35469d8c2013f8c701 Mon Sep 17 00:00:00 2001 From: A Holt Date: Wed, 27 Jul 2022 12:55:20 -0400 Subject: [PATCH] /usr/local/sbin/netwarn: Test-during-boot reminder #3318 --- roles/network/templates/netwarn/netwarn | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/network/templates/netwarn/netwarn b/roles/network/templates/netwarn/netwarn index fc4c8f4bb..8c5d95b05 100755 --- a/roles/network/templates/netwarn/netwarn +++ b/roles/network/templates/netwarn/netwarn @@ -1,5 +1,15 @@ #!/bin/bash +# CONFUSING BUT FYI: Commands below run *strictly sequentially* when this +# script (/usr/local/sbin/netwarn) is invoked by autostart during OS boot. +# This allows return codes to be meaningful, at each successive step. +# (As of July 2022, this is tested to work well with Ubuntu Mate and RasPiOS +# on Raspberry Pi 4!) +# +# IN CONTRAST: return codes below are NOT MEANINGFUL when this script is +# invoked from a regularly graphical desktop session -- so make sure to test +# during an actual OS boot-up, with autostart! + if [ -f /etc/iiab/install-flags/iiab-network-complete ]; then exit fi