contrib/meshwizard: Allow setting of luci_splash general values

remotes/tags/0.11.0
Manuel Munz 2011-11-25 16:18:43 +00:00
parent 3170786db4
commit c0a7768778
3 changed files with 5 additions and 2 deletions

View File

@ -4,7 +4,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=meshwizard PKG_NAME:=meshwizard
PKG_RELEASE:=0.0.5 PKG_RELEASE:=0.0.6
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)

View File

@ -15,7 +15,7 @@ for v in system wifi_device wifi_iface interface alias dhcp olsr_interface olsr_
done done
# now read all values from the selected community profile, will override some values from the defaults before # now read all values from the selected community profile, will override some values from the defaults before
for v in system wifi_device wifi_iface interface alias dhcp olsr_interface olsr_interfacedefaults profile zone_freifunk include; do for v in system wifi_device wifi_iface interface alias dhcp olsr_interface olsr_interfacedefaults profile zone_freifunk include luci_splash; do
get_var profile_$community.$v get_var profile_$community.$v
done done

View File

@ -11,6 +11,9 @@ if [ ! "$has_luci_splash" == TRUE ]; then
exit exit
fi fi
set_defaults "luci_splash_" luci_splash.general
uci_commitverbose "Setup general splash settings" luci_splash
dhcprange=$(uci -q get meshwizard.netconfig.$net\_dhcprange) dhcprange=$(uci -q get meshwizard.netconfig.$net\_dhcprange)
if [ "$(uci -q get meshwizard.netconfig.$net\_dhcp)" == 1 ] && [ -n "$dhcprange" ]; then if [ "$(uci -q get meshwizard.netconfig.$net\_dhcp)" == 1 ] && [ -n "$dhcprange" ]; then