![]() |
2011-11-20
, 11:21
|
|
Posts: 528 |
Thanked: 345 times |
Joined on Aug 2010
@ MLB.AU
|
#2
|
![]() |
2011-11-20
, 11:42
|
|
Posts: 518 |
Thanked: 334 times |
Joined on Mar 2010
@ italy
|
#3
|
good script
I googled, found this:
http://talk.maemo.org/showthread.php?t=49904
hope it helps
![]() |
2011-11-20
, 12:17
|
|
Posts: 196 |
Thanked: 113 times |
Joined on Jun 2010
@ Finland
|
#4
|
![]() |
2011-11-20
, 12:24
|
|
Posts: 518 |
Thanked: 334 times |
Joined on Mar 2010
@ italy
|
#5
|
run-standalone.sh dbus-send --type=method_call --print-reply --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.get_profile | grep "string" | sed s/' string '/''/g > /home/user/profilo.txt && sleep 2
![]() |
2011-11-20
, 12:29
|
|
Posts: 518 |
Thanked: 334 times |
Joined on Mar 2010
@ italy
|
#6
|
![]() |
2011-11-20
, 12:33
|
|
Posts: 2,222 |
Thanked: 12,651 times |
Joined on Mar 2010
@ SOL 3
|
#7
|
The Following User Says Thank You to joerg_rw For This Useful Post: | ||
![]() |
2011-11-20
, 12:37
|
|
Posts: 518 |
Thanked: 334 times |
Joined on Mar 2010
@ italy
|
#8
|
For God's sake please use functions () { }; in your script
And attach scripts here to tmo as attachment, rather than using pastebin which will vanisch in a week, or month, or year the latest
BTW if you definitely need bash then you should use
#!/bin/bash
Your shebang is calling ash aka messybox on a standard maemo system
/j
![]() |
2011-11-20
, 12:46
|
|
Posts: 2,222 |
Thanked: 12,651 times |
Joined on Mar 2010
@ SOL 3
|
#9
|
... A B C D ...
myABCDfunction() { A B C D }
... myABCDfunction ...
B 1
B 2
myABCDfunction() { A B $1 C D }
... myABCDfunction 1 ... myABCDfunction 2 ...
![]() |
2011-11-20
, 12:49
|
|
Posts: 518 |
Thanked: 334 times |
Joined on Mar 2010
@ italy
|
#10
|
where's the problem?
If you got 2 or more locations that look like
then you get *one*Code:... A B C D ...
and replace each occurrence of the four lines A B C D byCode:myABCDfunction() { A B C D }
If you gotCode:... myABCDfunction ...
at one location andCode:B 1
at another, then doCode:B 2
and call likeCode:myABCDfunction() { A B $1 C D }
Code:... myABCDfunction 1 ... myABCDfunction 2 ...
can somone help me? the script has to save the current profile if different from silent, i made some mistakes and i'm a little bit confused with it becouse it doesnt save the right used profile.
this is the code i made
**** the code is in test for that i left "battery.charge_level.percentage = " empty to test it better
*** 4 user Agents in the Status Menu ***
Mosquito's Hunter
Exential Suite
Camera UI pack (icons) for the CSSU Update
Date Time Syncronizer
PREENV and PREENV HD without switching between Libsdlpre
Last edited by santiago; 2011-11-23 at 13:42. Reason: update