projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ae0afe
)
another fix for the hosts page
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 2 Oct 2005 21:18:45 +0000
(21:18 +0000)
committer
Felix 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
patch
|
blob
|
history
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 a0526adb0f2c9e489813364beaf428deb1c72b65..5faa4885c64f867d02bebb01c031ec89b29de792 100755
(executable)
--- 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"
}