gluon/package/gluon-setup-mode/files/usr/bin/gluon-enter-setup-mode
Maciej Krüger cc49806e08
gluon-setup-mode: add gluon-enter-setup-mode
Script to enable setup mode and reboot

Fixes #2412
2022-04-06 22:29:45 +02:00

9 lines
161 B
Bash
Executable File

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