[Linuxtrent] Re: Avvio differenziato portatile

  • From: "Daniele V." <linuxtrent@xxxxxxxxx>
  • To: linuxtrent@xxxxxxxxxxxxx
  • Date: Thu, 6 Oct 2005 23:00:58 +0200

Ma l'avvio di fluxbox è comandato da bash_profile... come posso dire
al sistema (per non far partire fluxbox) di ignorarlo?

Il 05/10/05, Daniele Nicolodi<daniele@xxxxxxxxxx> ha scritto:
> On Wed, Oct 05, 2005 at 08:33:47PM +0200, Daniele V. wrote:
> > Nessuno mi sa aiutare?
>
> Sulla mia ubuntu posso utilizzare lo script /usr/bin/on_ac_power per
> sapere se il portatile sta lavorando collegato alla rete elettrica o
> meno.  Utilizzando questo basta che aggiungi una semplice riga in testa
> agli script che fanno avviare rispettivamente kdm o fluxbox:
>
> if [ /usr/bin/on_ac_power ] ; then
>   echo "on ac power. Not starting!"
>   exit 0
> fi
>
> if [ /usr/bin/on_ac_power ] ; then
>   echo "on battery. Not starting!"
>   exit 0
> fi
>
--
Per iscriversi  (o disiscriversi), basta spedire un  messaggio con OGGETTO
"subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxx


Other related posts: