gluon-setup-mode: add gluon-enter-setup-mode
Script to enable setup mode and reboot Fixes #2412
This commit is contained in:
parent
8e9a186e5a
commit
cc49806e08
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