gluon/package/gluon-setup-mode/files/usr/bin/gluon-enter-setup-mode

9 lines
161 B
Plaintext
Raw Normal View History

#!/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