Merge pull request #2459 from ffgraz/cm

gluon-setup-mode: add gluon-enter-setup-mode
This commit is contained in:
Matthias Schiffer 2022-04-27 18:36:59 +02:00 committed by GitHub
commit a27edd4baa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -6,9 +6,7 @@ wait=3
wait_setup_mode() { wait_setup_mode() {
sleep $wait sleep $wait
uci set 'gluon-setup-mode.@setup_mode[0].enabled=1' gluon-enter-setup-mode
uci commit gluon-setup-mode
reboot
} }

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