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() {
|
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
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