Skip to content
Snippets Groups Projects
Commit cd0a932a authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-setup-mode: provide alternative rc.d directory for procd

parent 60e0a560
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
check_enable() {
local enabled
local configured
config_get enabled "$1" enabled
config_get configured "$1" configured
if [ "$enabled" = 1 -o "$configured" != 1 ]; then
echo '/lib/gluon/setup-mode/rc.d' > /tmp/rc_d_path
fi
}
setup_mode_enable() {
config_load gluon-setup-mode
config_foreach check_enable setup_mode
}
boot_hook_add preinit_main setup_mode_enable
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment