summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/luci-addons/dist/etc
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-09-23 13:15:50 +0000
committerSteven Barth <steven@midlink.org>2008-09-23 13:15:50 +0000
commit251502e2cd0c47b426cfd4d4f183128ca528b91b (patch)
tree7d398abd86052302d19b7591a2fb4b621413a1cc /contrib/package/luci-addons/dist/etc
parent6b3985b6be52063c09f779b6bc509bf84eedc660 (diff)
Kill luci-addons package
Diffstat (limited to 'contrib/package/luci-addons/dist/etc')
-rw-r--r--contrib/package/luci-addons/dist/etc/config/luci_ethers0
-rw-r--r--contrib/package/luci-addons/dist/etc/config/luci_hosts3
-rw-r--r--contrib/package/luci-addons/dist/etc/crontabs/root3
-rw-r--r--contrib/package/luci-addons/dist/etc/init.d/luci_ethers35
-rw-r--r--contrib/package/luci-addons/dist/etc/init.d/luci_fixtime11
-rw-r--r--contrib/package/luci-addons/dist/etc/init.d/luci_hosts34
6 files changed, 0 insertions, 86 deletions
diff --git a/contrib/package/luci-addons/dist/etc/config/luci_ethers b/contrib/package/luci-addons/dist/etc/config/luci_ethers
deleted file mode 100644
index e69de29bb2..0000000000
--- a/contrib/package/luci-addons/dist/etc/config/luci_ethers
+++ /dev/null
diff --git a/contrib/package/luci-addons/dist/etc/config/luci_hosts b/contrib/package/luci-addons/dist/etc/config/luci_hosts
deleted file mode 100644
index 6221df72d7..0000000000
--- a/contrib/package/luci-addons/dist/etc/config/luci_hosts
+++ /dev/null
@@ -1,3 +0,0 @@
-config 'host'
- option 'ipaddr' '10.11.12.13'
- option 'hostname' 'sample-host'
diff --git a/contrib/package/luci-addons/dist/etc/crontabs/root b/contrib/package/luci-addons/dist/etc/crontabs/root
deleted file mode 100644
index 1169c5c6d3..0000000000
--- a/contrib/package/luci-addons/dist/etc/crontabs/root
+++ /dev/null
@@ -1,3 +0,0 @@
-* * * * * /usr/bin/run-parts /etc/cron.minutely
-17 * * * * /usr/bin/run-parts /etc/cron.hourly
-25 6 * * * /usr/bin/run-parts /etc/cron.daily
diff --git a/contrib/package/luci-addons/dist/etc/init.d/luci_ethers b/contrib/package/luci-addons/dist/etc/init.d/luci_ethers
deleted file mode 100644
index 8cf46729df..0000000000
--- a/contrib/package/luci-addons/dist/etc/init.d/luci_ethers
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh /etc/rc.common
-START=59
-
-apply_lease() {
- local cfg="$1"
-
- config_get macaddr "$cfg" macaddr
- config_get ipaddr "$cfg" ipaddr
-
- [ -n "$macaddr" -a -n "$ipaddr" ] || return 0
-
- echo "$macaddr $ipaddr" >> /var/etc/ethers
-}
-
-start() {
- if [ ! -L /etc/ethers ]; then
- test -f /etc/ethers && mv /etc/ethers /etc/ethers.local
- ln -s /var/etc/ethers /etc/ethers
- fi
-
- test -d /var/etc || mkdir -p /var/etc
-
- config_load luci_ethers
- config_foreach apply_lease static_lease
-
- test -f /etc/ethers.local && cat /etc/ethers.local >> /var/etc/ethers
-
- return 0
-}
-
-stop() {
- test -f /var/etc/ethers && rm -f /var/etc/ethers
-
- return 0
-}
diff --git a/contrib/package/luci-addons/dist/etc/init.d/luci_fixtime b/contrib/package/luci-addons/dist/etc/init.d/luci_fixtime
deleted file mode 100644
index 681d9d7898..0000000000
--- a/contrib/package/luci-addons/dist/etc/init.d/luci_fixtime
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh /etc/rc.common
-
-START=05
-
-start() {
- cat <<' EOF' | lua -l luci.fs -l luci.util -
- if (os.time() < 1000000000) then
- os.execute('date -s ' .. os.date('%m%d%H%M%Y', luci.fs.mtime(luci.util.libpath())))
- end
- EOF
-}
diff --git a/contrib/package/luci-addons/dist/etc/init.d/luci_hosts b/contrib/package/luci-addons/dist/etc/init.d/luci_hosts
deleted file mode 100644
index d01bfbbd55..0000000000
--- a/contrib/package/luci-addons/dist/etc/init.d/luci_hosts
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh /etc/rc.common
-START=60
-
-apply_host() {
- local cfg="$1"
-
- config_get hostname "$cfg" hostname
- config_get ipaddr "$cfg" ipaddr
-
- [ -n "$hostname" -a -n "$ipaddr" ] || return 0
-
- echo "$ipaddr $hostname" >> /var/etc/hosts
-}
-
-start() {
- if [ ! -L /etc/hosts ]; then
- test -f /etc/hosts && mv /etc/hosts /etc/hosts.local
- ln -s /var/etc/hosts /etc/hosts
- fi
-
- test -d /var/etc || mkdir -p /var/etc
- test -f /etc/hosts.local && cat /etc/hosts.local >> /var/etc/hosts
-
- config_load luci_hosts
- config_foreach apply_host host
-
- return 0
-}
-
-stop() {
- test -f /var/etc/hosts && rm -f /var/etc/hosts
-
- return 0
-}