local srv
local net
-local ip = ffluci.http.remote_addr()
+local ip = ffluci.http.env.REMOTE_ADDR
for k, v in pairs(ffluci.model.uci.sections("network")) do
if v[".type"] == "interface" and v.ipaddr then
local p = ffluci.sys.net.mask4prefix(v.netmask)
end
if not srv then
- ffluci.http.textheader()
+ ffluci.http.prepare_content("text/plain")
return print("Unable to detect network settings!")
end
$(call Package/ffluci/install/template,$(1),applications/luci-splash)
$(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-splash/dist/usr/sbin/luci-splash $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-splash/dist/etc/init.d/luci_splash $(1)/etc/init.d
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-splash/dist/usr/lib/luci-splash/htdocs/cgi-bin/index.cgi $(1)/usr/lib/luci-splash/htdocs/cgi-bin
endef