diff options
Diffstat (limited to 'contrib/package/luci-addons/dist/etc')
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 -} |