summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2008-05-11 07:13:08 +0000
committerobrien <obrien@FreeBSD.org>2008-05-11 07:13:08 +0000
commit2d5be982d386d844d0bf6c6c0e0e9483d797de8c (patch)
tree27ea8a0f9f934827aa58967de8bc6f8263a94867 /usr.sbin/sade
parent3b2c44be48c34cdc488bcf55cfc1f6f52ab7588e (diff)
downloadFreeBSD-src-2d5be982d386d844d0bf6c6c0e0e9483d797de8c.zip
FreeBSD-src-2d5be982d386d844d0bf6c6c0e0e9483d797de8c.tar.gz
Clean up several instances of SADE calling itself sysinstall.
(do so generically so the same set of changes can be applied to sysinstall)
Diffstat (limited to 'usr.sbin/sade')
-rw-r--r--usr.sbin/sade/config.c4
-rw-r--r--usr.sbin/sade/label.c2
-rw-r--r--usr.sbin/sade/system.c6
-rw-r--r--usr.sbin/sade/termcap.c2
-rw-r--r--usr.sbin/sade/variable.c8
5 files changed, 12 insertions, 10 deletions
diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c
index b2a84f9..b4f755f 100644
--- a/usr.sbin/sade/config.c
+++ b/usr.sbin/sade/config.c
@@ -181,8 +181,8 @@ configFstab(dialogMenuItem *self)
return DITEM_SUCCESS;
else {
msgConfirm("Attempting to rebuild your /etc/fstab file. Warning: If you had\n"
- "any CD devices in use before running sysinstall then they may NOT\n"
- "be found by this run!");
+ "any CD devices in use before running %s then they may NOT\n"
+ "be found by this run!", StartName);
}
devs = deviceFind(NULL, DEVICE_TYPE_DISK);
diff --git a/usr.sbin/sade/label.c b/usr.sbin/sade/label.c
index ac3994a..6b7c774 100644
--- a/usr.sbin/sade/label.c
+++ b/usr.sbin/sade/label.c
@@ -1276,7 +1276,7 @@ diskLabel(Device *dev)
if (!variable_cmp(DISK_LABELLED, "written")) {
msgConfirm("You've already written out your changes - if you\n"
"wish to overwrite them, you'll have to restart\n"
- "sade first.");
+ "%s first.", StartName);
}
else if (!msgNoYes("WARNING: You are about to modify an EXISTING\n"
"installation.\n\n"
diff --git a/usr.sbin/sade/system.c b/usr.sbin/sade/system.c
index df6cf32..05e55ec 100644
--- a/usr.sbin/sade/system.c
+++ b/usr.sbin/sade/system.c
@@ -233,10 +233,12 @@ systemHelpFile(char *file, char *buf)
snprintf(buf, FILENAME_MAX, "/stand/help/%s.TXT", file);
if (file_readable(buf))
return expand(buf);
- snprintf(buf, FILENAME_MAX, "/usr/src/usr.sbin/sade/help/%s.hlp", file);
+ snprintf(buf, FILENAME_MAX, "/usr/src/usr.sbin/%s/help/%s.hlp", StartName,
+ file);
if (file_readable(buf))
return buf;
- snprintf(buf, FILENAME_MAX, "/usr/src/usr.sbin/sade/help/%s.TXT", file);
+ snprintf(buf, FILENAME_MAX, "/usr/src/usr.sbin/%s/help/%s.TXT", StartName,
+ file);
if (file_readable(buf))
return buf;
return NULL;
diff --git a/usr.sbin/sade/termcap.c b/usr.sbin/sade/termcap.c
index 820d28d..5cf0f27 100644
--- a/usr.sbin/sade/termcap.c
+++ b/usr.sbin/sade/termcap.c
@@ -45,7 +45,7 @@ set_termcap(void)
stat = ioctl(STDERR_FILENO, GIO_COLOR, &ColorDisplay);
if (isDebug())
- DebugFD = open("sysinstall.debug", O_WRONLY|O_CREAT|O_TRUNC, 0644);
+ DebugFD = open("sade.debug", O_WRONLY|O_CREAT|O_TRUNC, 0644);
else
DebugFD = -1;
if (DebugFD < 0)
diff --git a/usr.sbin/sade/variable.c b/usr.sbin/sade/variable.c
index 7809deb..9abbcf4 100644
--- a/usr.sbin/sade/variable.c
+++ b/usr.sbin/sade/variable.c
@@ -238,12 +238,12 @@ dump_variables(dialogMenuItem *unused)
Variable *vp;
if (isDebug())
- msgDebug("Writing sysinstall variables to file..\n");
+ msgDebug("Writing %s variables to file..\n", StartName);
- fp = fopen("/etc/sysinstall.vars", "w");
+ fp = fopen("/etc/sade.vars", "w");
if (!fp) {
- msgConfirm("Unable to write to /etc/sysinstall.vars: %s",
- strerror(errno));
+ msgConfirm("Unable to write to /etc/%s.vars: %s",
+ StartName, strerror(errno));
return DITEM_FAILURE;
}
OpenPOWER on IntegriCloud