diff options
-rw-r--r-- | applications/community-berlin/Makefile | 2 | ||||
-rwxr-xr-x | applications/community-berlin/ipkg/postinst | 4 | ||||
-rw-r--r-- | applications/community-berlin/root/etc/uci-defaults/luci-community-berlin | 16 | ||||
-rw-r--r-- | contrib/package/luci/Makefile | 18 |
4 files changed, 40 insertions, 0 deletions
diff --git a/applications/community-berlin/Makefile b/applications/community-berlin/Makefile new file mode 100644 index 000000000..81a96f6a8 --- /dev/null +++ b/applications/community-berlin/Makefile @@ -0,0 +1,2 @@ +include ../../build/config.mk +include ../../build/module.mk
\ No newline at end of file diff --git a/applications/community-berlin/ipkg/postinst b/applications/community-berlin/ipkg/postinst new file mode 100755 index 000000000..ad5e96c3e --- /dev/null +++ b/applications/community-berlin/ipkg/postinst @@ -0,0 +1,4 @@ +#!/bin/sh +[ -n "${IPKG_INSTROOT}" ] || { + ( . /etc/uci-defaults/luci-community-berlin ) && rm -f /etc/uci-defaults/luci-community-berlin +} diff --git a/applications/community-berlin/root/etc/uci-defaults/luci-community-berlin b/applications/community-berlin/root/etc/uci-defaults/luci-community-berlin new file mode 100644 index 000000000..348b0c8e9 --- /dev/null +++ b/applications/community-berlin/root/etc/uci-defaults/luci-community-berlin @@ -0,0 +1,16 @@ +#!/bin/sh +uci batch <<-EOF + set freifunk.community.name='Freifunk Berlin' + set freifunk.community.homepage=http://berlin.freifunk.net + set freifunk.community.essid=olsr.freifunk.net + set freifunk.community.bssid=02:CA:FF:EE:BA:BE + set freifunk.community.channel=10 + set freifunk.community.net=104.0.0.0 + set freifunk.community.mask=255.0.0.0 + set freifunk.community.dns='88.198.178.18 141.54.1.1 212.204.49.83 208.67.220.220 208.67.222.222' + set luci.main.mediaurlbase=/luci-static/fledermaus + set luci.main.lang=de + commit freifunk + commit luci +EOF + diff --git a/contrib/package/luci/Makefile b/contrib/package/luci/Makefile index 5ca914721..c9bf18cc9 100644 --- a/contrib/package/luci/Makefile +++ b/contrib/package/luci/Makefile @@ -253,6 +253,21 @@ define Package/luci-ff-hannover/install endef +define Package/luci-ff-berlin + $(call Package/luci/fftemplate) + DEPENDS+= \ + +luci-sgi-cgi +luci-app-splash +luci-app-olsr \ + +luci-theme-fledermaus \ + +luci-i18n-german \ + +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice + TITLE:=Freifunk Berlin Community Meta-Package +endef + +define Package/luci-ff-berlin/install + $(call Package/luci/install/template,$(1),applications/community-berlin) +endef + + ### Modules ### define Package/luci-mod-admin-core @@ -478,6 +493,9 @@ endif ifneq ($(CONFIG_PACKAGE_luci-ff-hannover),) PKG_SELECTED_MODULES+=applications/community-hannover endif +ifneq ($(CONFIG_PACKAGE_luci-ff-berlin),) + PKG_SELECTED_MODULES+=applications/community-berlin +endif ifneq ($(CONFIG_PACKAGE_luci-mod-admin-core),) PKG_SELECTED_MODULES+=modules/admin-core |