Use "shutdown" instead of "halt" and "reboot" to get "/etc/rc.shutdown"

executed.
This commit is contained in:
tron 1998-11-10 22:23:02 +00:00
parent 368e0a9285
commit 37df7420e5
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,15 @@
$NetBSD: patch-ak,v 1.1 1998/11/10 22:23:02 tron Exp $
--- kdm/kdmshutdown.h.orig Thu Nov 20 14:08:11 1997
+++ kdm/kdmshutdown.h Tue Nov 10 21:41:48 1998
@@ -36,8 +36,8 @@
Q_OBJECT
public:
KDMShutdown( int mode, QWidget* _parent=0, const char* _name=0,
- const char* _shutdown = "/sbin/halt",
- const char* _restart = "/sbin/reboot");
+ const char* _shutdown = "/sbin/shutdown -h now",
+ const char* _restart = "/sbin/shutdown -r now");
private slots:
void rb_clicked(int);
void pw_entered();

View file

@ -0,0 +1,17 @@
$NetBSD: patch-al,v 1.1 1998/11/10 22:23:02 tron Exp $
--- kdm/kdmconfig.cpp.orig Thu Mar 26 17:37:16 1998
+++ kdm/kdmconfig.cpp Tue Nov 10 22:46:06 1998
@@ -119,10 +119,10 @@
_shutdownButton = KNone;
_shutdown = new QString( kc->readEntry( "Shutdown"));
if( _shutdown->isNull())
- *_shutdown = "/sbin/halt";
+ *_shutdown = "/sbin/shutdown -h now";
_restart = new QString( kc->readEntry( "Restart"));
if( _restart->isNull())
- *_restart = "/sbin/reboot";
+ *_restart = "/sbin/shutdown -r now";
} else
_shutdownButton = KNone;
if( kc->hasKey( "GUIStyle")) {