diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2004-04-28 09:09:27 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2004-04-28 09:09:27 +0000 |
commit | 3ee3cd316595187e51674640e334613f8d93b5e4 (patch) | |
tree | 8a431999f2a76a3d266e251e272228964edfb951 /etc | |
parent | 459336c4d85bc9576bb9d3c6cfc897bcc62fd05d (diff) | |
download | src-3ee3cd316595187e51674640e334613f8d93b5e4.tar.gz src-3ee3cd316595187e51674640e334613f8d93b5e4.zip |
Notes
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc.d/initdiskless | 5 | ||||
-rw-r--r-- | etc/rc.d/resolv | 2 | ||||
-rw-r--r-- | etc/rc.initdiskless | 5 |
3 files changed, 5 insertions, 7 deletions
diff --git a/etc/rc.d/initdiskless b/etc/rc.d/initdiskless index 16ca8cf86b59..1609fa8d90a4 100644 --- a/etc/rc.d/initdiskless +++ b/etc/rc.d/initdiskless @@ -178,7 +178,7 @@ bootp_ipbca="" if [ ${dlv:=0} -ne 0 ] ; then iflist=`ifconfig -l` for i in ${iflist} ; do - set `ifconfig ${i}` + set -- `ifconfig ${i}` while [ $# -ge 1 ] ; do if [ "${bootp_ifc}" = "" -a "$1" = "inet" ] ; then bootp_ifc=${i} ; bootp_ipa=${2} ; shift @@ -202,8 +202,7 @@ fi # Figure out our NFS root path # -# The 'x' is there in case the list is empty. -set x `mount -t nfs` +set -- `mount -t nfs` while [ $# -ge 1 ] ; do if [ "$2" = "on" -a "$3" = "/" ]; then nfsroot="$1" diff --git a/etc/rc.d/resolv b/etc/rc.d/resolv index 84837f92abcd..597e82add720 100644 --- a/etc/rc.d/resolv +++ b/etc/rc.d/resolv @@ -48,7 +48,7 @@ if [ ! -e /etc/resolv.conf -a \ echo domain `/bin/kenv dhcp.domain-name` > /etc/resolv.conf fi - set `/bin/kenv dhcp.domain-name-servers` + set -- `/bin/kenv dhcp.domain-name-servers` for ns in `IFS=','; echo $*`; do echo nameserver $ns >> /etc/resolv.conf; done diff --git a/etc/rc.initdiskless b/etc/rc.initdiskless index 16ca8cf86b59..1609fa8d90a4 100644 --- a/etc/rc.initdiskless +++ b/etc/rc.initdiskless @@ -178,7 +178,7 @@ bootp_ipbca="" if [ ${dlv:=0} -ne 0 ] ; then iflist=`ifconfig -l` for i in ${iflist} ; do - set `ifconfig ${i}` + set -- `ifconfig ${i}` while [ $# -ge 1 ] ; do if [ "${bootp_ifc}" = "" -a "$1" = "inet" ] ; then bootp_ifc=${i} ; bootp_ipa=${2} ; shift @@ -202,8 +202,7 @@ fi # Figure out our NFS root path # -# The 'x' is there in case the list is empty. -set x `mount -t nfs` +set -- `mount -t nfs` while [ $# -ge 1 ] ; do if [ "$2" = "on" -a "$3" = "/" ]; then nfsroot="$1" |