diff options
author | luigi <luigi@FreeBSD.org> | 2001-10-25 17:40:03 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2001-10-25 17:40:03 +0000 |
commit | af343dd439b9f3478fe350bf144fe7f026d7c55b (patch) | |
tree | 06b414f2156e57f4c08764d13ea1c7a5680e6d11 /release/picobsd | |
parent | 750eb154f1760a450b36f69630c809b2e7681e78 (diff) | |
download | FreeBSD-src-af343dd439b9f3478fe350bf144fe7f026d7c55b.zip FreeBSD-src-af343dd439b9f3478fe350bf144fe7f026d7c55b.tar.gz |
Better code to scan the ethertable.
Diffstat (limited to 'release/picobsd')
-rw-r--r-- | release/picobsd/floppy.tree/etc/rc.conf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/picobsd/floppy.tree/etc/rc.conf b/release/picobsd/floppy.tree/etc/rc.conf index 33a9dda..2926b09 100644 --- a/release/picobsd/floppy.tree/etc/rc.conf +++ b/release/picobsd/floppy.tree/etc/rc.conf @@ -59,10 +59,10 @@ get_ether() { # set "hostname" using $1 (ethernet address) as search key in /etc/hosts fetch_hostname() { - local a b c key + local a b c key junk key=$1 # search key hostname="" - while read a b c ; do + while read a b c junk ; do if [ "$a" = "#ethertable" ] ; then hostname="." elif [ "X$hostname" = "X." -a "X$a" = "X#" ] ; then |