From: Felix Fietkau Date: Sun, 2 Oct 2005 21:18:45 +0000 (+0000) Subject: another fix for the hosts page X-Git-Tag: whiterussian_rc4~150 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=37557b37a98e343fd17aee816a3f1374ccebe189;p=openwrt%2Fsvn-archive%2Fopenwrt.git another fix for the hosts page SVN-Revision: 2030 --- diff --git a/openwrt/package/webif/files/www/cgi-bin/webif/hosts.sh b/openwrt/package/webif/files/www/cgi-bin/webif/hosts.sh index a0526adb0f..5faa4885c6 100755 --- a/openwrt/package/webif/files/www/cgi-bin/webif/hosts.sh +++ b/openwrt/package/webif/files/www/cgi-bin/webif/hosts.sh @@ -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" }