Join Today
+ Reply to Thread
Results 1 to 4 of 4

Thread: ShutdownTone

  1. #1

    Default ShutdownTone

    I want build a new rootfs with shutdown tone. I tried to put the startuptone script in /etc/rc.d/rc0.d/ but nothing happen!? Could anyone help me??

  2. #2

    Default

    you should put yourscript in /etc/rc.d/rc2.d phone normally run in runlevel 2. or put my startup script instead. it execute all *.lin in /ezxlocal/download/mystuff/startup/ and /mmc/mmca1/startup/

    #!/bin/bash
    # Startup script by Ake @ ThaiLinuxPDA.com Aug 9, 2007
    # ----------------------------------

    if test -d /ezxlocal/download/mystuff/startup;
    then
    dir -1 /ezxlocal/download/mystuff/startup/*.lin | while read linfile;
    do
    exec &
    done
    fi

    if test -d /mmc/mmca1/startup;
    then
    dir -1 /mmc/mmca1/startup/*.lin | while read linfile;
    do
    exec &
    done
    fi

    becarefull for filename. scripts in rc.d runed by name ordering. SXX is a startup script KXX is a ending script. more for information see Linux Run Level. (I'm a newbie or intermediate to it)
    Visit my Blog here.http://my.opera.com/eakrin

  3. #3

    Default

    Thx, a lot.
    I tried:

    #/bin/sh

    # startup tone

    rm /tmp/startuptone.log
    while [ ! -f /tmp/startuptone.log ]; do
    ps -ef > /tmp/psaux
    if grep "soundmanager" /tmp/psaux; then
    touch /tmp/startuptone.log
    else
    sleep 1s
    fi
    done
    rm /tmp/psaux

    /etc/startuptone > /tmp/startuptone.log &
    fi

    __________________________________________

    #!/bin/bash

    # Startup tone

    export QTDIR=/usr/lib/ezx

    if [ -f /diska/preload/startup.wav ]; then
    /usr/SYSqtapp/phone/alertprocess -playvol 12 -playfile /diska/preload/startup.wav
    else
    if [ -f /diska/preload/startup.mp3 ]; then
    /usr/SYSqtapp/phone/alertprocess -playvol 10 -playfile /diska/preload/startup.mp3
    fi
    fi

  4. #4

    Default

    Didn't work..
    I've saved the file as 'K11' !?


 
+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1