aboutsummaryrefslogtreecommitdiff
path: root/stand/common/install.c
diff options
context:
space:
mode:
Diffstat (limited to 'stand/common/install.c')
-rw-r--r--stand/common/install.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/stand/common/install.c b/stand/common/install.c
index ea6eaaa7cebc..d07c4c6fc620 100644
--- a/stand/common/install.c
+++ b/stand/common/install.c
@@ -24,9 +24,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
#include <sys/param.h>
#include <sys/socket.h>
#include <net/if.h>
@@ -140,7 +137,9 @@ read_metatags(int fd)
}
*p++ = '\0';
- if (strcmp(tag, "KERNEL") == 0)
+ if (strncmp(tag, "ENV_", 4) == 0)
+ setenv(&tag[4], val, 1);
+ else if (strcmp(tag, "KERNEL") == 0)
error = setpath(&inst_kernel, val);
else if (strcmp(tag, "MODULES") == 0)
error = setmultipath(&inst_modules, val);
@@ -215,6 +214,7 @@ install(char *pkgname)
if (i == 4 && !strncasecmp(pkgname, "tftp", i)) {
devname = "net0";
devnamelen = 4;
+ netproto = NET_TFTP;
proto = &tftp_fsops;
} else if (i == 4 && !strncasecmp(pkgname, "file", i)) {
currdev = getenv("currdev");