diff --git a/package/gluon-setup-mode/files/lib/gluon/setup-mode/rc.d/S11bootcount b/package/gluon-setup-mode/files/lib/gluon/setup-mode/rc.d/S11bootcount
new file mode 100755
index 0000000000000000000000000000000000000000..0c1ff1f2db36356d8c52bf2fa85b6c5dd36f417f
--- /dev/null
+++ b/package/gluon-setup-mode/files/lib/gluon/setup-mode/rc.d/S11bootcount
@@ -0,0 +1,7 @@
+#!/bin/sh /etc/rc.common
+
+# shellcheck disable=SC1091
+
+if [ -x /etc/init.d/bootcount ] && /etc/init.d/bootcount enabled; then
+	. /etc/init.d/bootcount
+fi