From 7ccea3e5a2ae5b57560d3ff6992339328dab3a19 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 22 Sep 2016 20:09:54 +0200 Subject: [PATCH] sysutils/boot-delay: this is neat... So now that we have a non-persistent boot delay in our install images we may still have users that can't live without it so this plugin installs a persistent boot delay. The first boot will work, can bring up network and install! Yes, now you're saying this is stupid, which it it if you're not seeing the bigger picture. This paves the way for plugin- based optimisation for the following use case: https://github.com/opnsense/plugins/issues/9 Yes, yes, more work needs to be done but it's a start. :) --- sysutils/boot-delay/+POST_DEINSTALL | 2 ++ sysutils/boot-delay/+POST_INSTALL | 2 ++ sysutils/boot-delay/Makefile | 6 ++++++ sysutils/boot-delay/src/etc/rc.loader.d/50-boot-delay | 1 + 4 files changed, 11 insertions(+) create mode 100644 sysutils/boot-delay/+POST_DEINSTALL create mode 100644 sysutils/boot-delay/+POST_INSTALL create mode 100644 sysutils/boot-delay/Makefile create mode 100644 sysutils/boot-delay/src/etc/rc.loader.d/50-boot-delay diff --git a/sysutils/boot-delay/+POST_DEINSTALL b/sysutils/boot-delay/+POST_DEINSTALL new file mode 100644 index 000000000..4ceb2dca3 --- /dev/null +++ b/sysutils/boot-delay/+POST_DEINSTALL @@ -0,0 +1,2 @@ +echo "Reloading firmware configuration" +/usr/local/etc/rc.configure_firmware diff --git a/sysutils/boot-delay/+POST_INSTALL b/sysutils/boot-delay/+POST_INSTALL new file mode 100644 index 000000000..4ceb2dca3 --- /dev/null +++ b/sysutils/boot-delay/+POST_INSTALL @@ -0,0 +1,2 @@ +echo "Reloading firmware configuration" +/usr/local/etc/rc.configure_firmware diff --git a/sysutils/boot-delay/Makefile b/sysutils/boot-delay/Makefile new file mode 100644 index 000000000..b870624a6 --- /dev/null +++ b/sysutils/boot-delay/Makefile @@ -0,0 +1,6 @@ +PLUGIN_NAME= boot-delay +PLUGIN_VERSION= 1.0 +PLUGIN_COMMENT= Apply a persistent boot delay +PLUGIN_MAINTAINER= franco@opnsense.org + +.include "../../Mk/plugins.mk" diff --git a/sysutils/boot-delay/src/etc/rc.loader.d/50-boot-delay b/sysutils/boot-delay/src/etc/rc.loader.d/50-boot-delay new file mode 100644 index 000000000..cdf2a4196 --- /dev/null +++ b/sysutils/boot-delay/src/etc/rc.loader.d/50-boot-delay @@ -0,0 +1 @@ +kern.cam.boot_delay="10000"