PPv4: systemd when exec poweroff LED light stays solid green

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

PPv4: systemd when exec poweroff LED light stays solid green

Postby winestock » Fri Feb 01, 2013 3:49 am

I decided to reinstall kirkwood linux again because I wanted to convert over to systemd completely. I had no issues with installing from scratch linux-kirkood 3.7. Before I had done this I could execute shutdown -h now to shutdown the system and the front LED light on the Pogoplug would go out. Now when I want to shutdown I execute poweroff. The system does shutdown, the HDD does spin down but the front LED light on the Pogoplug stays solid green. Other then explicitly writing to /sys/class/leds how do I get the LED light on the Pogoplug to turn off at poweroff?
Last edited by winestock on Sat Feb 02, 2013 5:28 am, edited 1 time in total.
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am

Re: PPv4: systemd when exec poweroff LED light stays solid g

Postby winestock » Sat Feb 02, 2013 5:18 am

I did find a work around. What I did was create a poweroff.sh script:
$this->bbcode_second_pass_code('', '
#!/bin/sh

echo none | tee /sys/class/leds/status:green:health/trigger 2>&1 >/dev/null
systemctl poweroff
')

I put the poweroff.sh script in /usr/local/bin, set the owner to root.root. I then created a symbolic link: "ln -s /usr/local/bin/poweroff.sh /usr/local/bin/poweroff".

When I want to perform a shutdown I just execute "sudo poweroff".
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: Majestic-12 [Bot] and 460 guests