summaryrefslogtreecommitdiffhomepage
path: root/web/root
diff options
context:
space:
mode:
Diffstat (limited to 'web/root')
-rw-r--r--web/root/etc/config/luci39
-rw-r--r--web/root/www/resources/cbi.js42
2 files changed, 81 insertions, 0 deletions
diff --git a/web/root/etc/config/luci b/web/root/etc/config/luci
new file mode 100644
index 0000000000..87170a9b18
--- /dev/null
+++ b/web/root/etc/config/luci
@@ -0,0 +1,39 @@
+config core main
+ option lang de
+ option mediaurlbase /luci/fledermaus
+ option resourcebase /luci/resources
+
+config core brand
+ option title "OpenWRT Kamikaze"
+ option subtitle Freifunkedition
+ option firmware "OpenWRT Kamikaze"
+ option distro "Freifunk Firmware 2.x"
+
+config extern flash_keep
+ option uci "/etc/config"
+ option dropbear "/etc/dropbear"
+ option openvpn "/etc/openvpn"
+ option passwd "/etc/passwd"
+ option ipkg "/etc/ipkg.conf"
+ option httpd "/etc/httpd.conf"
+ option firewall "/etc/firewall.user"
+
+config event uci_oncommit
+ option network "/etc/init.d/network restart"
+ option wireless "/etc/init.d/network restart"
+ option olsr "/sbin/reboot"
+ option dhcp "/etc/init.d/dnsmasq restart"
+ option luci_fw "/etc/init.d/luci_fw restart"
+ option dropbear "/etc/init.d/dropbear restart"
+ option httpd "/etc/init.d/httpd restart"
+ option fstab "/etc/init.d/fstab restart"
+ option qos "/etc/init.d/qos restart"
+ option luci_splash "/etc/init.d/luci_splash restart"
+ option freifunk "/etc/init.d/luci_freifunk restart"
+
+config internal languages
+ option de "Deutsch"
+ option en "English"
+
+config internal themes
+ option Fledermaus "/luci/fledermaus"
diff --git a/web/root/www/resources/cbi.js b/web/root/www/resources/cbi.js
new file mode 100644
index 0000000000..a3a47aa45b
--- /dev/null
+++ b/web/root/www/resources/cbi.js
@@ -0,0 +1,42 @@
+var cbi_d = {};
+
+function cbi_d_add(field, target, value) {
+ if (!cbi_d[target]) {
+ cbi_d[target] = {};
+ }
+ if (!cbi_d[target][value]) {
+ cbi_d[target][value] = [];
+ }
+ cbi_d[target][value].push(field);
+}
+
+function cbi_d_update(target) {
+ if (!cbi_d[target]) {
+ return;
+ }
+
+ for (var x in cbi_d[target]) {
+ for (var i=0; i<cbi_d[target][x].length; i++) {
+ var y = document.getElementById(cbi_d[target][x][i])
+ y.style.display = "none";
+ }
+ }
+
+ var t = document.getElementById(target);
+ if (t && t.value && cbi_d[target][t.value]) {
+ for (var i=0; i<cbi_d[target][t.value].length; i++) {
+ var y = document.getElementById(cbi_d[target][t.value][i])
+ if (!y.value) {
+ y.style.display = "table-row";
+ } else {
+ y.style.display = "block";
+ }
+ }
+ }
+}
+
+function cbi_d_init() {
+ for (var x in cbi_d) {
+ cbi_d_update(x);
+ }
+} \ No newline at end of file