main.c (8098) | main.c (8262) |
---|---|
1/* 2 * The new sysinstall program. 3 * 4 * This is probably the last attempt in the `sysinstall' line, the next 5 * generation being slated for what's essentially a complete rewrite. 6 * | 1/* 2 * The new sysinstall program. 3 * 4 * This is probably the last attempt in the `sysinstall' line, the next 5 * generation being slated for what's essentially a complete rewrite. 6 * |
7 * $Id$ | 7 * $Id: main.c,v 1.1.1.1 1995/04/27 12:50:34 jkh Exp $ |
8 * 9 * Copyright (c) 1995 10 * Jordan Hubbard. All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without 13 * modification, are permitted provided that the following conditions 14 * are met: 15 * 1. Redistributions of source code must retain the above copyright --- 27 unchanged lines hidden (view full) --- 43 44#include "sysinstall.h" 45 46int 47main(int argc, char **argv) 48{ 49 int choice, scroll, curr, max; 50 | 8 * 9 * Copyright (c) 1995 10 * Jordan Hubbard. All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without 13 * modification, are permitted provided that the following conditions 14 * are met: 15 * 1. Redistributions of source code must retain the above copyright --- 27 unchanged lines hidden (view full) --- 43 44#include "sysinstall.h" 45 46int 47main(int argc, char **argv) 48{ 49 int choice, scroll, curr, max; 50 |
51 if (geteuid() != 0) { 52 fprintf(stderr, "This utility can only be run as root.\n"); 53 return 1; 54 } |
|
51 /* Set up whatever things need setting up */ 52 systemInitialize(argc, argv); 53 54 /* Welcome user to FreeBSD */ 55 systemWelcome(); 56 57 /* Begin user dialog at outer menu */ 58 choice = scroll = curr = max = 0; 59 dmenuOpen(&MenuInitial, &choice, &scroll, &curr, &max); 60 61 /* Say goodnight, Gracie */ 62 systemShutdown(); 63 64 /* If we're running as init, we should never get here */ 65 return 0; 66} | 55 /* Set up whatever things need setting up */ 56 systemInitialize(argc, argv); 57 58 /* Welcome user to FreeBSD */ 59 systemWelcome(); 60 61 /* Begin user dialog at outer menu */ 62 choice = scroll = curr = max = 0; 63 dmenuOpen(&MenuInitial, &choice, &scroll, &curr, &max); 64 65 /* Say goodnight, Gracie */ 66 systemShutdown(); 67 68 /* If we're running as init, we should never get here */ 69 return 0; 70} |