
Originally Posted by
aremcy
how can i add salarm_daemon at startup.txt? and where can i find the file startup.txt?
thanks
The startup.txt is only in modded firmware available. So the location can be everywhere. However this file needs to be executed and this is written in the runlevels.
Runlevel 2 will executed when you startup the phone.
If you have no startup then you can add a startup folder, by create a file called for example S80startup and put it in rc2.d. However you need to flash your cg33 rootfs. The contents should look something like this, depends on where you want to have your startup folder.
Code:
#!/bin/sh
if [ -d /mmc/mmca1/.system/startup ]; then
SCRIPTS=$(ls /mmc/mmca1/.system/startup/)
for SCRIPT in ; do
"/mmc/mmca1/.system/startup/"
done
else
fi
The script, for example "salarm_d.sh", to call a deamon should look something like this. Maybe you need to export some variables before. This is the theory i never started the salarm_deamon.
Code:
#!/bin/sh
. /home/native/.profile
start-stop-daemon --start --quiet --chuid root --exec /diska/.system/QTDownLoad/salarm/salarm_deamon
Or you put first a deamon script it in /etc/init.d and make a start/stop/restart script.