summaryrefslogtreecommitdiff
path: root/usr.sbin/sysinstall/install.c
diff options
context:
space:
mode:
authorRebecca Cran <brucec@FreeBSD.org>2010-08-17 09:39:06 +0000
committerRebecca Cran <brucec@FreeBSD.org>2010-08-17 09:39:06 +0000
commit3affea8f990e70e79b8a8582e7f9c4b011c0fa7c (patch)
treedddcbea3eb4b045482f04c13e365e39ed7d2049f /usr.sbin/sysinstall/install.c
parent2793b018446552e71e9125dc39366f9dbf9042ba (diff)
Notes
Diffstat (limited to 'usr.sbin/sysinstall/install.c')
-rw-r--r--usr.sbin/sysinstall/install.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/install.c b/usr.sbin/sysinstall/install.c
index cd43e94ff7c83..07a16d17dd623 100644
--- a/usr.sbin/sysinstall/install.c
+++ b/usr.sbin/sysinstall/install.c
@@ -1274,7 +1274,7 @@ installVarDefaults(dialogMenuItem *self)
variable_set2(VAR_FIXIT_TTY, "serial", 0);
variable_set2(VAR_PKG_TMPDIR, "/var/tmp", 0);
variable_set2(VAR_MEDIA_TIMEOUT, itoa(MEDIA_TIMEOUT), 0);
- if (getpid() != 1)
+ if (!RunningAsInit)
variable_set2(SYSTEM_STATE, "update", 0);
else
variable_set2(SYSTEM_STATE, "init", 0);