From b09dc169b7955ab878fc320a3ed40e06732f3526 Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Sun, 12 Oct 1997 16:21:21 +0000 Subject: Separate the siamese twins that were the partition and label editor. Now you can use one without entering the other and it will DTRT. These changes just allowed me to do the most straight-forward new disk installation I've ever managed with sysinstall. --- usr.sbin/sysinstall/variable.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'usr.sbin/sysinstall/variable.c') diff --git a/usr.sbin/sysinstall/variable.c b/usr.sbin/sysinstall/variable.c index 0e31ae39ccbd..a13b71dd74a7 100644 --- a/usr.sbin/sysinstall/variable.c +++ b/usr.sbin/sysinstall/variable.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: variable.c,v 1.19 1997/06/11 08:41:10 jkh Exp $ + * $Id: variable.c,v 1.20 1997/06/13 14:21:22 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -105,6 +105,16 @@ variable_get(char *var) return getenv(var); } +int +variable_cmp(char *var, char *value) +{ + char *val; + + if ((val = variable_get(var))) + return strcmp(val, value); + return -1; +} + void variable_unset(char *var) { -- cgit v1.3