filebrowser: adjust init
This commit is contained in:
parent
ef4ee640e9
commit
38b5fe037a
@ -61,7 +61,6 @@ define Build/Compile
|
||||
$(TARGET_CC) -c -O3 -o duk_module_node.o -I. ../extras/module-node/duk_module_node.c; \
|
||||
$(TARGET_AR) cr libduktape.a duktape.o; \
|
||||
$(TARGET_AR) cr libduktape_module.a duk_module_node.o; \
|
||||
cd ../../../..; \
|
||||
env $(call Build/Compile/Default) \
|
||||
)
|
||||
endef
|
||||
|
||||
@ -19,12 +19,8 @@ init_conf() {
|
||||
config_get "enabled" "config" "enabled" "0"
|
||||
config_get "port" "config" "port" "8989"
|
||||
config_get "root_dir" "config" "root_dir" "/"
|
||||
|
||||
config_load "network"
|
||||
config_get "lan_addr" "lan" "ipaddr" "192.168.1.1"
|
||||
}
|
||||
|
||||
|
||||
start_service() {
|
||||
init_conf
|
||||
[ "${enabled}" == "1" ] || exit 0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user