filebrowser: adjust init

This commit is contained in:
CN_SZTL 2020-08-05 23:15:17 +08:00
parent ef4ee640e9
commit 38b5fe037a
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 0 additions and 5 deletions

View File

@ -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

View File

@ -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