[Q] echo and sed not working

12:20 , 0 Comments

I'm owner of an Live with Walkman (wt19i) and would like to get walkman light auto turn on when i open walkman or play music.

Ehen setting the value of /sys/class/leds/music-light/brightness to 255 the walkman light turn on, so i tried to make a shell script to run it with Tasker app to when music is playing script runs but no sucessm tried on terminal and doesnt change the values.

Don't know with it possible but later i'll try modify apk to run the script.

I'm running scripts with root access,

the script are:




Code:



#!/bin/bash

echo 255 > /sys/class/leds/music-light/brightness




Code:



#!/bin/bash

sed 's/0/255/' /sys/class/leds/music-light/brightness








via xda-developers http://forum.xda-developers.com/showthread.php?t=2371705&goto=newpost

gamal mostfa

Some say he’s half man half fish, others say he’s more of a seventy/thirty split. Either way he’s a fishy bastard.

0 comments: