Merge pull request #2459 from ffgraz/cm
gluon-setup-mode: add gluon-enter-setup-mode
This commit is contained in:
commit
a27edd4baa
@ -6,9 +6,7 @@ wait=3
|
||||
|
||||
wait_setup_mode() {
|
||||
sleep $wait
|
||||
uci set 'gluon-setup-mode.@setup_mode[0].enabled=1'
|
||||
uci commit gluon-setup-mode
|
||||
reboot
|
||||
gluon-enter-setup-mode
|
||||
}
|
||||
|
||||
|
||||
|
8
package/gluon-setup-mode/files/usr/bin/gluon-enter-setup-mode
Executable file
8
package/gluon-setup-mode/files/usr/bin/gluon-enter-setup-mode
Executable 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
|
Loading…
Reference in New Issue
Block a user