2014-08-06 15:20:07 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
2014-08-16 13:15:24 +00:00
|
|
|
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')"
|
2014-08-06 15:20:07 +00:00
|
|
|
|
2019-09-30 19:38:40 +00:00
|
|
|
if [ "$enabled" = 1 ] || [ "$configured" != 1 ]; then
|
2014-08-06 15:20:07 +00:00
|
|
|
echo '/lib/gluon/setup-mode/rc.d' > /tmp/rc_d_path
|
2014-08-16 13:15:24 +00:00
|
|
|
fi
|
2014-08-06 15:20:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
boot_hook_add preinit_main setup_mode_enable
|