gluon/package/gluon-setup-mode/files/lib/preinit/90_setup_mode

14 lines
347 B
Plaintext
Raw Normal View History

#!/bin/sh
setup_mode_enable() {
local enabled="$(uci -q get 'gluon-setup-mode.@setup_mode[0].enabled')"
local configured="$(uci -q get 'gluon-setup-mode.@setup_mode[0].configured')"
2019-09-30 19:38:40 +00:00
if [ "$enabled" = 1 ] || [ "$configured" != 1 ]; then
echo '/lib/gluon/setup-mode/rc.d' > /tmp/rc_d_path
fi
}
boot_hook_add preinit_main setup_mode_enable