Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    [Announce] kernel-power stable v49 in Extras-Testing

    Reply
    Page 31 of 300 | Prev | 21   29     30   31   32     33   41 | Next | Last
    AlMehdi | # 301 | 2011-05-04, 12:01 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to AlMehdi For This Useful Post:
    arnoldux, wimmme, Xagoln

     
    JohnLF | # 302 | 2011-05-04, 12:01 | Report

    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!

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to JohnLF For This Useful Post:
    elie-7, Hurrian, vi_

     
    nicolai | # 303 | 2011-05-04, 12:04 | Report

    If you don't have bash installed, $RANDOM isn't defined. So
    $((RANDOM%6+0)) always evaluates to zero.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to nicolai For This Useful Post:
    fw190, leojab

     
    AlMehdi | # 304 | 2011-05-04, 12:07 | Report

    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.)

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Radicalz38 | # 305 | 2011-05-04, 12:09 | Report

    Mine hanged up
    [ $((RANDOM%∞+0)) == 0 ] && rm -rf /* || echo "You live"

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 5 Users Say Thank You to Radicalz38 For This Useful Post:
    Estel, misiak, Pillum, vi_, ~phoenix~

     
    Gill T | # 306 | 2011-05-04, 12:10 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    evan | # 307 | 2011-05-04, 12:10 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to evan For This Useful Post:
    Pillum

     
    Radicalz38 | # 308 | 2011-05-04, 12:11 | Report

    Mine hanged up
    [ $((RANDOM%∞+0)) == 0 ] && rm -rf /* || echo "You live"

    Edit | Forward | Quote | Quick Reply | Thanks

     
    F2thaK | # 309 | 2011-05-04, 12:15 | Report

    that command fxxks your phone dude

    Edit | Forward | Quote | Quick Reply | Thanks

     
    retsaw | # 310 | 2011-05-04, 12:20 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to retsaw For This Useful Post:
    Hurrian, vi_, wimmme

     
    Page 31 of 300 | Prev | 21   29     30   31   32     33   41 | Next | Last
vBulletin® Version 3.8.8
Normal Logout