Date: Wed, 31 May 2000 01:00:48 +0900 From: Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org> To: alexkwan@pacific.net.hk Cc: iwasaki@jp.FreeBSD.org, freebsd-mobile@FreeBSD.ORG Subject: Re: Is pccard_ether a shell script (another question) Message-ID: <20000531010048C.iwasaki@jp.FreeBSD.org> In-Reply-To: <002501bfca4e$978ca520$9d1d40ca@alexkwan> References: <000f01bfca4c$9d8493e0$9d1d40ca@alexkwan> <20000531003815T.iwasaki@jp.FreeBSD.org> <002501bfca4e$978ca520$9d1d40ca@alexkwan>
index | next in thread | previous in thread | raw e-mail
Hi,
> Hi! Mitsuru,
>
> How to add following rc.conf entries to pccard_ether:
> ifconfig_ep0_alias0="inet 192.168.1.10 netmask 255.255.255.0"
> ifconfig_ep0_alais0="inet 192.168.1.11 netmask 255.255.255.0"
Like this?
--- etc/pccard_ether- Sun May 14 19:53:18 2000
+++ etc/pccard_ether Wed May 31 00:57:03 2000
@@ -41,6 +41,18 @@
;;
*)
ifconfig ${interface} ${pccard_ifconfig} $*
+ # Check to see if aliases need to be added
+ alias=0
+ while :
+ do
+ eval ifx_args=\$ifconfig_${interface}_alias${alias}
+ if [ -n "$ifx_args" ]; then
+ ifconfig $interface $ifx_args alias
+ alias=`expr ${alias} + 1`
+ else
+ break;
+ fi
+ done
;;
esac
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000531010048C.iwasaki>
