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

Re: [MiNT] [Aranym-user] clean shutdown



Selon Martin Tarenskeen <m.tarenskeen@zonnet.nl>:

> Hi,
>
> I'm running an uptodate freemint-1.16-cur/xaaes/teradesk combination on
> both my Falcon030/CT2b and Aranym boxes. I'm not happy with the many
> choices I have to do a shutdown: I can select an item in the Teradesk
> menu, there is a "quit XaAES" in the XaAES menu, there is the XaAES
> taskmanager, and I can use the "shutdown" command in a Toswin2 window, or
> in the console. And there are the separate shutdown apps that come with
> N_AES and MyAES. I would like to see one central, clean and properly
> working shutdown method.
>
> Not only I find all this ugly and confusing. A more serious problem is
> that not all of these methods work cleanly. I have had to use the poweroff
> button on my computer and run the ext2 filesystemcheck more than I want
> to.
>
> Especially my aranym system is giving problems. I have a setup where I
> use an entry in /etc/ttytab to start in a mgetty console. Then I start
> XaAES from there. I have copied xaloader.prg to /usr/bin/ and renamed it
> as /usr/bin/xaaes. I type "xaaes" in the console and there I go.
>
> But I have only found one way to quit from the XaAES back into the login
> console: I have to select the "reboot" in the Taskmanager. And if I want
> to shutdown, I have to do the same. Then, from the login console I type
> "shutdown" to shutdown cleanly. All the other available shutdown methods
> do not work cleanly on my Aranym box.
>
> (I have also tried the Xa-My-AES diskimage. This setup uses gemhalt.prg
> for shutdown. Works great. But I prefer my own setup.)

here source code for gemhalt

void main()
{ int button;
	appl_init();
	button=form_alert(1,"[3][SHUTDOWN option][Poweroff|reboot|cold reboot]");
	shel_write	(SWM_SHUTDOWN,0, button-1,NULL, NULL);
	appl_exit();
}

shel_write() himself quit all application, perform sync() then
Shutdown()

Olivier