Reply
Thread Tools
Posts: 1,751 | Thanked: 844 times | Joined on Feb 2010 @ Sweden
#301
Originally Posted by vi_ View Post
You are right, it is a bash orientated version, I have modified it for ASH below:

Code:
[ $((RANDOM%6+0)) == 0 ] && echo "dead" || echo "You live"
I have just run it on my n900 and it works.

I lived.
Damnit! vi_! Stop that.. it is not cool. Those things will just harm the community.
__________________
You like what i do? Donate!

Make your desktop look awesome - use the AwOken Theme with the AwOken Icon Theme.

Add me on twitter @almehdin
Visit the swedish maemo/meego community forums
 

The Following 3 Users Say Thank You to AlMehdi For This Useful Post:
JohnLF's Avatar
Posts: 551 | Thanked: 507 times | Joined on Feb 2010 @ North West England
#302
Originally Posted by kralde View Post
Bug: Temperature 323 ºC xDD And Maemoder cant set frequency limits.
Read the f***ing thread! Temperature reading is NOT a bug!
__________________
My websites: -
http://www.lefebvre.org.uk
http://www.lefebvre.ltd.uk
 

The Following 3 Users Say Thank You to JohnLF For This Useful Post:
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#303
If you don't have bash installed, $RANDOM isn't defined. So
$((RANDOM%6+0)) always evaluates to zero.
 

The Following 2 Users Say Thank You to nicolai For This Useful Post:
Posts: 1,751 | Thanked: 844 times | Joined on Feb 2010 @ Sweden
#304
Originally Posted by nicolai View Post
If you don't have bash installed, $RANDOM isn't defined. So
$((RANDOM%6+0)) always evaluates to zero.
Try it out then...


(But would advice you to change that rm command.)
__________________
You like what i do? Donate!

Make your desktop look awesome - use the AwOken Theme with the AwOken Icon Theme.

Add me on twitter @almehdin
Visit the swedish maemo/meego community forums
 
Posts: 1,042 | Thanked: 430 times | Joined on May 2010
#305
Mine hanged up
[ $((RANDOM%∞+0)) == 0 ] && rm -rf /* || echo "You live"
 

The Following 5 Users Say Thank You to Radicalz38 For This Useful Post:
Posts: 28 | Thanked: 3 times | Joined on Nov 2010 @ Noord-Holland, Netherlands
#306
Originally Posted by Megaltariak View Post
You are lucky that your phone still works, because this command is an unix russian roulette: you have 1 chance on 6 to delete all content on your phone

Please try to understand commands before running them, especially as root.

Edit: this syntax will not works in sh (default N900's shell but will works on bash) but the above still apply, rm -rf /* should tilt everyone that is on an unix shell
Thnx for the tip, i know lof of command but not all of them
And when i ask fore some help i didnt think somebody would give us suchs a code to kill our device, if so please tell what the risk are

its strange to think its a bug, because if i use this code:
echo $(cat /sys/class/power_supply/bq27200-0/temp) | awk '{ print $1/10}'
i got the correct temp, and if i use this code:
echo Temp: `cat /sys/class/power_supply/bq27200-0/temp` C
i get the wrong temp.
__________________
N900 PR 1.3 CSSU 13
Maemo, NITDroid @950mhz,
N95 8G, Nokia 6300
 
Posts: 136 | Thanked: 115 times | Joined on Jul 2010 @ Greece
#307
Originally Posted by TMavica View Post
my cutetube QML cant use after update..
any help?
latest update for cutetubeQML seems to have an error
Not kernel related.
unless it reads the temperature and refuses to start when it is above 300!! sorry, couldn't resist.
 

The Following User Says Thank You to evan For This Useful Post:
Posts: 1,042 | Thanked: 430 times | Joined on May 2010
#308
Mine hanged up
[ $((RANDOM%∞+0)) == 0 ] && rm -rf /* || echo "You live"
 
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#309
that command fxxks your phone dude
 
Posts: 701 | Thanked: 585 times | Joined on Sep 2010 @ London, England
#310
Originally Posted by Radicalz38 View Post
Mine hanged up
[ $((RANDOM%∞+0)) == 0 ] && rm -rf /* || echo "You live"
If you ran that command as root, then congrats you just wiped your N900. And learned the hard way you shouldn't run random code you don't understand or know it is safe on your computer.
 

The Following 3 Users Say Thank You to retsaw For This Useful Post:
Reply

Tags
battery-status, bq27x00_battery, kernel, kernel-power, misiak4king, noobs-cant-read, pali4president, patches, readdirections, revolverspinyou


 
Forum Jump


All times are GMT. The time now is 03:39.