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

9 lines
151 B
Plaintext
Raw Normal View History

#!/bin/sh
set -eu
echo "Entering setup mode and rebooting..."
uci set gluon-setup-mode.@setup_mode[0].enabled='1'
uci commit gluon-setup-mode
reboot