diff options
author | jkh <jkh@FreeBSD.org> | 1995-11-12 07:27:58 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-11-12 07:27:58 +0000 |
commit | 0cb4eade3b2a8ffd277c79ff328c71b8e4ee77fc (patch) | |
tree | 580b9a4dd988914d3ecf08f359307e8b6401b5c8 /usr.sbin/sysinstall/anonFTP.c | |
parent | 8bcc3104704a39a32abfe55d0bf54b22cdfdd14a (diff) | |
download | FreeBSD-src-0cb4eade3b2a8ffd277c79ff328c71b8e4ee77fc.zip FreeBSD-src-0cb4eade3b2a8ffd277c79ff328c71b8e4ee77fc.tar.gz |
Make editor start on right screen for anonFTP setup.
Don't clobber mediaDevice if post-configuring networking from CDROM.
Diffstat (limited to 'usr.sbin/sysinstall/anonFTP.c')
-rw-r--r-- | usr.sbin/sysinstall/anonFTP.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/anonFTP.c b/usr.sbin/sysinstall/anonFTP.c index 350c1a7..389f48b 100644 --- a/usr.sbin/sysinstall/anonFTP.c +++ b/usr.sbin/sysinstall/anonFTP.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: anonFTP.c,v 1.4 1995/11/11 11:49:22 jkh Exp $ + * $Id: anonFTP.c,v 1.5 1995/11/11 11:56:40 jkh Exp $ * * Copyright (c) 1995 * Coranth Gryphon. All rights reserved. @@ -468,8 +468,13 @@ configAnonFTP(char *unused) dialog_clear(); if (!msgYesNo("Create a welcome message file for anonymous FTP users?")) { + char cmd[256]; + + dialog_clear(); + msgNotify("Uncompressing the editor - please wait.."); vsystem("echo Your welcome message here. > %s/etc/%s", tconf.homedir, MOTD_FILE); - vsystem("/stand/ee %s/etc/%s", tconf.homedir, MOTD_FILE); + sprintf(cmd, "/stand/ee %s/etc/%s", tconf.homedir, MOTD_FILE); + systemExecute(cmd); } } else { |