[GUIDE] GoFlex Home, Bottom LED Disk Access

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

[GUIDE] GoFlex Home, Bottom LED Disk Access

Postby Fma965 » Thu Mar 07, 2013 4:11 pm

Follow these instructions to get the bottom led to indicate disk access.

$this->bbcode_second_pass_quote('Obihoernchen', 'I')'ve made a systemd service to autostart this blink action :D

You need iostat so install sysstat:
$this->bbcode_second_pass_code('', 'pacman -S sysstat')

Create a new file called
/usr/lib/systemd/system/blinkled.service
$this->bbcode_second_pass_code('', '[Unit]
Description=Blink LED if hard drive is active daemon

[Service]
Type=oneshot
ExecStart=/usr/local/bin/blinkled
ExecStop=/usr/bin/killall iostat
RemainAfterExit=true

[Install]
WantedBy=multi-user.target')

And another one called
/usr/local/bin/blinkled

$this->bbcode_second_pass_code('', '#!/bin/bash
/usr/bin/iostat -z -d 3 sda | /usr/bin/sed -u -e '1d' -e 's/Device.*/none/' -e 's/sd.*/heartbeat/' -e '/^$/d' > /sys/class/leds/status\:white\:misc/trigger &')
$this->bbcode_second_pass_quote('Obihoernchen', '
')Make executable:
$this->bbcode_second_pass_code('', 'chmod u+x /usr/local/bin/blinkled')

Now you can use systemctl to control this service :)
To enable:
$this->bbcode_second_pass_code('', 'systemctl enable blinkled.service')
To start:
$this->bbcode_second_pass_code('', 'systemctl start blinkled')
Fma965
 
Posts: 53
Joined: Sun Mar 03, 2013 5:18 pm

Re: [GUIDE] GoFlex Home, Bottom LED Disk Access

Postby Obihoernchen » Thu Mar 07, 2013 4:25 pm

?
Visit my Blog for Pogoplug guides
Obihoernchen
 
Posts: 17
Joined: Thu Jan 31, 2013 3:17 am
Location: Germany

Re: [GUIDE] GoFlex Home, Bottom LED Disk Access

Postby Fma965 » Thu Mar 07, 2013 4:35 pm

$this->bbcode_second_pass_quote('Obihoernchen', '?')


Yeah ur guide, changed it so it works with bottom LED, all credits to you :)
Fma965
 
Posts: 53
Joined: Sun Mar 03, 2013 5:18 pm
Top

Re: [GUIDE] GoFlex Home, Bottom LED Disk Access

Postby Obihoernchen » Thu Mar 07, 2013 4:36 pm

Ah cool :)

Thought it was the same^^
Visit my Blog for Pogoplug guides
Obihoernchen
 
Posts: 17
Joined: Thu Jan 31, 2013 3:17 am
Location: Germany

Re: [GUIDE] GoFlex Home, Bottom LED Disk Access

Postby Fma965 » Thu Mar 07, 2013 5:31 pm

$this->bbcode_second_pass_quote('Obihoernchen', 'A')h cool :)

Thought it was the same^^

yh literally like 2 words different, but felt it deserved a new thread aswell :)
Fma965
 
Posts: 53
Joined: Sun Mar 03, 2013 5:18 pm
Top


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 16 guests