Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/utils/sysinst Run reboot(8) and halt(8) from system(...



details:   https://anonhg.NetBSD.org/src/rev/3e578e67bcb9
branches:  trunk
changeset: 525709:3e578e67bcb9
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Tue Apr 16 02:20:17 2002 +0000

description:
Run reboot(8) and halt(8) from system(), not run_prog().

diffstat:

 distrib/utils/sysinst/menus.mi.en |  6 +++---
 distrib/utils/sysinst/menus.mi.fr |  6 +++---
 distrib/utils/sysinst/menus.mi.pl |  6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)

diffs (81 lines):

diff -r c6cedb84fc1f -r 3e578e67bcb9 distrib/utils/sysinst/menus.mi.en
--- a/distrib/utils/sysinst/menus.mi.en Tue Apr 16 02:06:09 2002 +0000
+++ b/distrib/utils/sysinst/menus.mi.en Tue Apr 16 02:20:17 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: menus.mi.en,v 1.50 2002/04/16 02:06:09 mycroft Exp $   */
+/*     $NetBSD: menus.mi.en,v 1.51 2002/04/16 02:20:17 mycroft Exp $   */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -70,7 +70,7 @@
        option "Re-install sets or install additional sets",
                action { do_reinstall_sets(); };
        option "Reboot the computer", exit,
-               action (endwin) { run_prog(0, NULL, "/sbin/reboot -q"); };
+               action (endwin) { system("/sbin/reboot -q"); };
        option "Utility menu", sub menu utility;
 
 menu utility, title "NetBSD-@@VERSION@@ Utilities", exit;
@@ -91,7 +91,7 @@
 /*     option "Partition a disk"; XXX add later.  */
        option "Logging functions", action { do_logging(); };
        option "Halt the system", exit,
-               action (endwin) { run_prog(0, NULL, "/sbin/halt -q"); };
+               action (endwin) { system("/sbin/halt -q"); };
 
 menu yesno, title "yes or no?";
        option "Yes", exit, action  {yesno = 1;};
diff -r c6cedb84fc1f -r 3e578e67bcb9 distrib/utils/sysinst/menus.mi.fr
--- a/distrib/utils/sysinst/menus.mi.fr Tue Apr 16 02:06:09 2002 +0000
+++ b/distrib/utils/sysinst/menus.mi.fr Tue Apr 16 02:20:17 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: menus.mi.fr,v 1.34 2002/04/16 02:06:10 mycroft Exp $   */
+/*     $NetBSD: menus.mi.fr,v 1.35 2002/04/16 02:20:17 mycroft Exp $   */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -69,7 +69,7 @@
        option "Réinstaller ou installer de nouveaux composants",
                action { do_reinstall_sets(); };
        option "Redémarrer l'ordinateur", exit,
-               action (endwin) { run_prog(0, NULL, "/sbin/reboot -q"); };
+               action (endwin) { system("/sbin/reboot -q"); };
        option "Menu utilitaire", sub menu utility;
 
 menu utility, title "Utilitaires NetBSD-@@VERSION@@", exit;
@@ -87,7 +87,7 @@
 /*     option "Partitioner un disque"; XXX add later.  */
        option "Traces", action { do_logging(); };
        option "Arrêter le système", exit,
-               action (endwin) { run_prog(0, NULL, "/sbin/halt -q"); };
+               action (endwin) { system("/sbin/halt -q"); };
 
 menu yesno, title "oui ou non?";
        option "Oui", exit, action  {yesno = 1;};
diff -r c6cedb84fc1f -r 3e578e67bcb9 distrib/utils/sysinst/menus.mi.pl
--- a/distrib/utils/sysinst/menus.mi.pl Tue Apr 16 02:06:09 2002 +0000
+++ b/distrib/utils/sysinst/menus.mi.pl Tue Apr 16 02:20:17 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: menus.mi.pl,v 1.2 2002/04/16 02:06:10 mycroft Exp $    */
+/*     $NetBSD: menus.mi.pl,v 1.3 2002/04/16 02:20:17 mycroft Exp $    */
 /*     Based on english version: */
 /*     NetBSD: menus.mi.en,v 1.49 2002/04/04 14:26:44 ad Exp   */
 
@@ -72,7 +72,7 @@
        option "Przeinstaluj albo zainstaluj dodatkowe pakiety",
                action { do_reinstall_sets(); };
        option "Zrestartuj komputer", exit,
-               action (endwin) { run_prog(0, NULL, "/sbin/reboot -q"); };
+               action (endwin) { system("/sbin/reboot -q"); };
        option "Menu Narzedziowe", sub menu utility;
 
 menu utility, title "Narzedzia NetBSD-@@VERSION@@", exit;
@@ -93,7 +93,7 @@
 /*     option "Skonfiguruj dysk"; XXX add later.  */
        option "Funkcje logowania", action { do_logging(); };
        option "Zatrzymaj system", exit,
-               action (endwin) { run_prog(0, NULL, "/sbin/halt -q"); };
+               action (endwin) { system("/sbin/halt -q"); };
 
 menu yesno, title "tak lub nie?";
        option "Tak", exit, action  {yesno = 1;};



Home | Main Index | Thread Index | Old Index