From cc49806e08f41169b337c7f6b70fde6dec123ac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= Date: Tue, 5 Apr 2022 17:34:14 +0200 Subject: [PATCH] gluon-setup-mode: add gluon-enter-setup-mode Script to enable setup mode and reboot Fixes #2412 --- .../gluon-setup-mode/files/usr/bin/gluon-enter-setup-mode | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 package/gluon-setup-mode/files/usr/bin/gluon-enter-setup-mode diff --git a/package/gluon-setup-mode/files/usr/bin/gluon-enter-setup-mode b/package/gluon-setup-mode/files/usr/bin/gluon-enter-setup-mode new file mode 100755 index 00000000..e20f973d --- /dev/null +++ b/package/gluon-setup-mode/files/usr/bin/gluon-enter-setup-mode @@ -0,0 +1,8 @@ +#!/bin/sh + +set -euo pipefail + +echo "Entering setup mode and rebooting..." +uci set gluon-setup-mode.@setup_mode[0].enabled='1' +uci commit gluon-setup-mode +reboot