![]() |
2010-09-29
, 15:21
|
|
Posts: 194 |
Thanked: 266 times |
Joined on May 2010
|
#62
|
![]() |
2010-09-29
, 15:22
|
|
Posts: 2,473 |
Thanked: 12,265 times |
Joined on Oct 2009
@ Jerusalem, PS/IL
|
#63
|
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) multi-call binary Usage: dirname FILENAME expr: syntax error sh: -eq: argument expected cat: can't open '/sys/class/i2c-adapter/i2c-3/3-0022/fm_rssi': No such file or directory sh: -112: unknown operand
![]() |
2010-09-29
, 15:25
|
|
Posts: 194 |
Thanked: 266 times |
Joined on May 2010
|
#64
|
Script isn't working, keeps erroring out:
Code:BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) multi-call binary Usage: dirname FILENAME expr: syntax error sh: -eq: argument expected cat: can't open '/sys/class/i2c-adapter/i2c-3/3-0022/fm_rssi': No such file or directory sh: -112: unknown operand
![]() |
2010-09-29
, 15:28
|
|
Posts: 2,473 |
Thanked: 12,265 times |
Joined on Oct 2009
@ Jerusalem, PS/IL
|
#65
|
Nokia-N900:/sys/class/i2c-adapter/i2c-3/3-0022# ls bus modalias name power subsystem uevent
![]() |
2010-09-29
, 15:37
|
|
Posts: 194 |
Thanked: 266 times |
Joined on May 2010
|
#66
|
![]() |
2010-09-29
, 15:44
|
|
Posts: 2,473 |
Thanked: 12,265 times |
Joined on Oct 2009
@ Jerusalem, PS/IL
|
#67
|
![]() |
2010-09-29
, 15:49
|
|
Posts: 194 |
Thanked: 266 times |
Joined on May 2010
|
#68
|
Uh, does it matter? The kernel module is responsible on creating those files, not your script.
cat: can't open '/sys/class/i2c-adapter/i2c-3/3-0022/fm_rssi': No such file or directory
Your script tries to read that file ^ which doesn't exist on the stock kernel (or kernels based on it)
![]() |
2010-09-29
, 15:56
|
|
Posts: 2,473 |
Thanked: 12,265 times |
Joined on Oct 2009
@ Jerusalem, PS/IL
|
#69
|
When you turn on reciever these files are created automattialy. The script works fine on my n900. Tested 1.4.0 on my n900 and works with sudo gainroot too.
Nokia-N900:/sys/class/i2c-adapter/i2c-3/3-0022# fmtx_client -p1 Usage: ------ -f<uint> Set frequency (in kHz) -s<string> Set RDS station name -t<string> Set RDS info text -p<uint> Turn fmtx on (1) or off (0) Current settings (Frequencies in kHz): -------------------------------------- version=1 frequency=107500 freq_min=76000 freq_max=107900 freq_step=100 state=enabled rds_ps=Nokia rds_text= Nokia-N900:/sys/class/i2c-adapter/i2c-3/3-0022# ls bus modalias name power subsystem uevent
![]() |
2010-09-29
, 16:03
|
|
Posts: 194 |
Thanked: 266 times |
Joined on May 2010
|
#70
|
Making debs is easy, hit me up with a PM if you have any problems
When you make a deb though you'll have to use sudo, so you should figure out why sudo gainroot doesn't work, prefix dbus and zenity lines with run-standalone.sh
Edit 2: who's # Copyright (c) 2010 OEM LTD (HE99116) #
Edit: indented code, I hate ugly scripts
Last edited by MohammadAG; 2010-09-29 at 14:52.