diff options
author | luigi <luigi@FreeBSD.org> | 2001-10-07 17:17:26 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2001-10-07 17:17:26 +0000 |
commit | 1f90bd5aeb321c7465ba26fdad16bb3181777877 (patch) | |
tree | badecaf8cc400cf647595ef4fffcc4dcc6f1bc7b /release/picobsd/floppy.tree | |
parent | 392c300e5f20d59d5578951d6dc70493187e4b1e (diff) | |
download | FreeBSD-src-1f90bd5aeb321c7465ba26fdad16bb3181777877.zip FreeBSD-src-1f90bd5aeb321c7465ba26fdad16bb3181777877.tar.gz |
Make fetch_mask return ${default_mask} if entry not found.
Add a couple of diagnostic messages.
Diffstat (limited to 'release/picobsd/floppy.tree')
-rw-r--r-- | release/picobsd/floppy.tree/etc/rc.conf | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/release/picobsd/floppy.tree/etc/rc.conf b/release/picobsd/floppy.tree/etc/rc.conf index 67477bd..33a9dda 100644 --- a/release/picobsd/floppy.tree/etc/rc.conf +++ b/release/picobsd/floppy.tree/etc/rc.conf @@ -74,6 +74,7 @@ fetch_hostname() { esac fi done < /etc/hosts + echo "fetch_hostname for <${key}> returns <${hostname}>" } # sets "mask" using $1 (netmask name) as the search key in /etc/networks @@ -89,6 +90,10 @@ fetch_mask() { ;; esac done < /etc/networks + if [ "${mask}" = "" ] ; then + mask=${default_mask} + fi + echo "fetch_mask for <${key}> returns <${mask}>" } @@ -104,9 +109,6 @@ set_main_interface() { fi fi fetch_mask ${hostname}-netmask - if [ "${mask}" = "" ] ; then - mask=${default_mask} - fi eval ifconfig_${main_if}=\" \${hostname} netmask \${mask}\" network_interfaces=`ifconfig -l` |