summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/tcpip.c
diff options
context:
space:
mode:
authorhosokawa <hosokawa@FreeBSD.org>2000-01-14 19:05:55 +0000
committerhosokawa <hosokawa@FreeBSD.org>2000-01-14 19:05:55 +0000
commit7884146f7d74840c61ccf3d53bb48243ca161ee0 (patch)
treef3e9435733bb8a3666b4f147f777ac8a1f7a1d28 /usr.sbin/sysinstall/tcpip.c
parentfc143221f0d1b178b9bb89b9aaf917774cba689b (diff)
downloadFreeBSD-src-7884146f7d74840c61ccf3d53bb48243ca161ee0.zip
FreeBSD-src-7884146f7d74840c61ccf3d53bb48243ca161ee0.tar.gz
Set pccard_ifconfig in /etc/rc.conf automatically.
Diffstat (limited to 'usr.sbin/sysinstall/tcpip.c')
-rw-r--r--usr.sbin/sysinstall/tcpip.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/tcpip.c b/usr.sbin/sysinstall/tcpip.c
index 453fe5f..6a83bb5 100644
--- a/usr.sbin/sysinstall/tcpip.c
+++ b/usr.sbin/sysinstall/tcpip.c
@@ -360,6 +360,7 @@ netconfig:
DevInfo *di;
char temp[512], ifn[255];
char *ifaces;
+ char *pccard;
if (hostname[0]) {
variable_set2(VAR_HOSTNAME, hostname, use_dhcp ? 0 : 1);
@@ -388,6 +389,10 @@ netconfig:
else
sprintf(temp, "inet %s %s netmask %s", ipaddr, extras, netmask);
variable_set2(ifn, temp, 1);
+ pccard = variable_get("_pccard_install");
+ if (pccard && strcmp(pccard, "YES") == 0) {
+ variable_set2("pccard_ifconfig", temp, 1);
+ }
ifaces = variable_get(VAR_INTERFACES);
if (!ifaces)
variable_set2(VAR_INTERFACES, ifaces = "lo0", 1);
OpenPOWER on IntegriCloud