A Script To Shutdown After Charging


chris_c

Member
Joined
Jun 25, 2010
Messages
393
Age
55
http://chrisc.bedroomcoders.co.uk/?p=77

*please* read what is there before asking questions ....
 
chris_c said:
no it should be user initiated - no automatic
That's why I said "That still need to be configurable" in the feature request.
But I can easily see a script that :
- is launched through a launcher in the system category
- do what your current script does
- display a windows saying something like "waiting to have reached full battery to shutdown"
- cancel that setup if the windows is closed
 
Last edited by a moderator:
Hey, sorry to open up a dead forum, but i have a ?.
im a little bit confused on what i need to run in the terminal (linux noob here)
Could you clarify a bit for me please?
Thanks!
 
If after reading the article, you're still not sure then its probably not for you...
 
chris_c said:
If after reading the article, you're still not sure then its probably not for you...
I read the article, but i just want to check to see if i have an understanding of it.
1, download said files from the bottom of the article
2,place twlTransistion into /etc/init.d/ and then use chmod + x
3, cp pokeVtrans to /usr/bin
I dont really understand the 5 ls sudo lines.
Please, i know im really nooby at linux, but help a brother out!
 
Last edited by a moderator:
just execute each one it turn

its ln not ls - think of this as windows short cuts but a sight more powerful...

on a Linux desktop machine type
Code:
man ln

assuming you have made a directory in your home directory called bin for the ./offwhencharged.sh script
you will need to

Code:
cd bin

once you have started a terminal - or
Code:
sudo bin/offwhencharged.sh


you will need to verify that the script is executable

Code:
ls -l
will show you file permission

Code:
chmod +x offwhencharged.sh
will make it executable
 
oh, one last thing, i hate to be a bother but just want to be sure.
on your article you said that it was important not to run this script in isolation, what does that mean?
Thanks.
 
chris_c said:
that you should set up twlTransistion to be run on reboot,
and thats just by making it excuteble and placing it in the /etc/init.d/ folder right?
 
Last edited by a moderator:
no you also need to make the symbolic links

http://book.opensourceproject.org.cn/embedded/embeddedprime/opensource/0136130550/ch06lev1sec3.html
 
litphoenix said:
Does anyone have what was on the first blog link? Looks like his blog died : (


have you tried sending him a personal message on forum boards?
 
Last edited by a moderator:
Back
Top