another fix for the hosts page
authorFelix Fietkau <nbd@openwrt.org>
Sun, 2 Oct 2005 21:18:45 +0000 (21:18 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 2 Oct 2005 21:18:45 +0000 (21:18 +0000)
SVN-Revision: 2030

openwrt/package/webif/files/www/cgi-bin/webif/hosts.sh

index a0526adb0f2c9e489813364beaf428deb1c72b65..5faa4885c64f867d02bebb01c031ec89b29de792 100755 (executable)
@@ -65,7 +65,6 @@ hostname|FORM_host_name|Hostname|required|$FORM_host_name" && update_hosts add "
 }
 [ ! -z "$FORM_add_dhcp" ] && {
        # add a host to /etc/ethers
-       [ -f /tmp/.webif/file-ethers ] || cat /etc/ethers > /tmp/.webif/file-ethers
        validate "mac|FORM_dhcp_mac|MAC Address|required|$FORM_dhcp_mac
 ip|FORM_dhcp_ip|IP|required|$FORM_dhcp_ip" && update_ethers add "$FORM_dhcp_mac" "$FORM_dhcp_ip"
 }