View Single Post
Community Council | Posts: 4,338 | Thanked: 10,697 times | Joined on May 2012 @ Southerrn Finland
#28
Originally Posted by n950 View Post
Code:
devel-su
(the password)

leds=$(find /sys/devices/virtual/gpio -name name | xargs grep sleep_ind | cut -d ":" -f 1| sed -e "s/name/value/") echo "0" > $leds


Its 2 rows actually...

Code:
leds=$(find /sys/devices/virtual/gpio -name name | xargs grep sleep_ind | cut -d ":" -f 1| sed -e "s/name/value/")

and
Code:
echo "0" > $leds


Or if you want to have it in one go, put a semicolon there...
Code:
leds=$(find /sys/devices/virtual/gpio -name name | xargs grep sleep_ind | cut -d ":" -f 1| sed -e "s/name/value/"); echo "0" > $leds
 

The Following User Says Thank You to juiceme For This Useful Post: