Hi Christian,

thanks, but my problem ist not stopping wifi (I am not using iliwi btw but my 
own scripts) but to do this automatically before the system suspends.
Also this was meant as an example usecase for scripts to be executed before 
suspend / after resume.

Cheers,
 Christian

On Monday, 7. March 2011 14:53:37 you wrote:
> Hello Christian,
> 
> you can execute the following command in the command line to stop wifi:
> 
> killall iliwi
> 
> If you want, you can create an icon on the desctop to do this for you. It
> should work this way, but it's untested:
> 
> Create a picture and copy ist to the phone
> 
> scp WifiOFF.png [email protected]:/usr/share/pixmaps/
> 
> then create a configuration file for the desktop icon:
> 
> cat << EOF >/usr/share/applications/WifiOFF.desktop
> [Desktop Entry]
> Name=WifiOFF
> Comment=Stop Wifi
> Encoding=UTF-8
> Version=0.1.1
> Type=Application
> Categories=Application;Utility
> Exec=killall iliwi
> Icon=WifiOFF.png
> Terminal=false
> SingleInstance=true
> StartupNotify=true
> 
> EOF
> 
> Maybe there is a better way?
> 
> Regards
> Christian
> 
> 
> 2011/3/7 Christian Rüb <[email protected]>
> 
>  On Friday, 4. March 2011 01:16:33 Michael Decker wrote:
> > > > Sometimes I can manage to still open a terminal although many other
> > programs fail and issue a shutdown with "init 0" (when shutdown and halt
> > fail).
> > > > Starting the device again all programs can be started normally.
> > > > Sometimes I have no other choice than powering down my Freerunner by a
> > long press of the power button, as it is not even possible to open a
> > terminal.
> > > >
> > > > I cannot exactly tell since when I have this behaviour and would like
> > to know if others have this too.
> > > It has been some time but I believe I had the same problem (on SHR-U
> > > from SDcard). I'm running the latest SHR-T from SD right now and there
> > > it has not happened to me there as far as I can remember.
> > >
> > > Michael
> >
> > Thanks for your reply. for whatever reason it has not happened again since
> > I have written this mail (still on SHR-U).
> >
> > Anyway it would be nice to know if there is a way to execute scripts before
> > suspend and after resume (e.g. to turn off wifi).
> >
> > Christian
> >  _______________________________________________
> > Shr-User mailing list
> > [email protected]
> > http://lists.shr-project.org/mailman/listinfo/shr-user
> >
> 
_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user

Reply via email to