From 3a37c33a648e1f6cc5838fa571ed7eb9009a153c Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Fri, 16 Feb 2024 01:35:39 -0500 Subject: [PATCH] New attempt at getting configure-stormux to run on first boot. --- pi4/files/etc/cron.d/0firstrun | 3 --- pi4/files/etc/profile.d/stormux_first_boot.sh | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) delete mode 100644 pi4/files/etc/cron.d/0firstrun create mode 100755 pi4/files/etc/profile.d/stormux_first_boot.sh diff --git a/pi4/files/etc/cron.d/0firstrun b/pi4/files/etc/cron.d/0firstrun deleted file mode 100644 index acfa3be..0000000 --- a/pi4/files/etc/cron.d/0firstrun +++ /dev/null @@ -1,3 +0,0 @@ -SHELL=/bin/bash -PATH=/sbin:/bin:/usr/sbin:/usr/bin -@reboot root /usr/bin/local/configure-stormux diff --git a/pi4/files/etc/profile.d/stormux_first_boot.sh b/pi4/files/etc/profile.d/stormux_first_boot.sh new file mode 100755 index 0000000..7342abd --- /dev/null +++ b/pi4/files/etc/profile.d/stormux_first_boot.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +if [[ "$(tty)" = "/dev/tty1" ]]; then + configure-stormux +fi