From mint-bounce@lists.fishpool.fi  Sun Apr  3 11:42:34 2005
X-Original-To: fnaumann@mail.boerde.de
Delivered-To: fnaumann@mail.boerde.de
Message-ID: <1112521171.424fb9d315414@webmail1.utbm.fr>
Date: Sun,  3 Apr 2005 11:39:31 +0200
From: "olivier.landemarre@utbm.fr" <Olivier.Landemarre@utbm.fr>
To: Atari Running on Any Machine - UML <aranym-user@bobek.sh.cvut.cz>,
        Martin Tarenskeen <m.tarenskeen@zonnet.nl>
Cc: MiNT Mailing List <mint@fishpool.com>,
        Atari Running on Any Machine - UML <ARAnyM-user@bobek.sh.cvut.cz>
Subject: Re: [MiNT] [Aranym-user] clean shutdown
References: <Pine.LNX.4.62.0504021000050.4722@localhost.localdomain>
In-Reply-To: <Pine.LNX.4.62.0504021000050.4722@localhost.localdomain>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
User-Agent: Internet Messaging Program (IMP) 3.2.4
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-To: mint-bounce@lists.fishpool.fi
X-original-sender: Olivier.Landemarre@utbm.fr
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
X-Virus-Scanned: by amavisd-new at relay.boerde.de
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de
X-Spam-Status: No, hits=2.6 tagged_above=-50.5 required=7.0 tests=AWL,
 BAYES_00, RCVD_IN_SORBS
X-Spam-Level: **
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by wh58-508.st.uni-magdeburg.de id j339gYpr003829

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


