gluon-setup-mode: add gluon-enter-setup-mode

Script to enable setup mode and reboot

Fixes #2412
This commit is contained in:
Maciej Krüger 2022-04-05 17:34:14 +02:00
parent 8e9a186e5a
commit cc49806e08
No known key found for this signature in database
GPG Key ID: 0D948CE19CF49C5F

View File

@ -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