Netgear ReadyNAS duo V2 - hard disk presence LEDs July 25, 2024 06:24PM |
Registered: 4 months ago Posts: 12 |
Re: Netgear ReadyNAS duo V2 - hard disk presence LEDs July 25, 2024 08:47PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Netgear ReadyNAS duo V2 - hard disk presence LEDs July 26, 2024 02:22AM |
Registered: 4 months ago Posts: 12 |
Re: Netgear ReadyNAS duo V2 - hard disk presence LEDs July 26, 2024 02:19PM |
Admin Registered: 13 years ago Posts: 19,102 |
Quote
Updated 01 Nov 2023:
Basic Debian bookworm Kirkwood rootfs for most Kirwood plugs:
- tarball size: 250MB
- install size: 714MB
- The init system used in this rootfs is sysvinit . To boot with systemd, see Notes below.
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, isc-dhcp-client, dialog, bzip2, nfs server/client, iperf, ethtool, sysvinit-core, sysvinit, sysvinit-utils, u-boot-tools, libubootenv-tool, mtd-utils, and orphan-sysvinit-scripts.
- see LED controls examples in /etc/rc.local, and /etc/init.d/halt
ls -l /sys/class/ledsAnd you should see
status:blue:disk1_led status:blue:disk2_led
Re: Netgear ReadyNAS duo V2 - hard disk presence LEDs August 02, 2024 10:48AM |
Registered: 4 months ago Posts: 12 |
cd /etc/udev/rules.d/ touch 10-local.rules
udevadm info -a -p /sys/class/leds/status:blue:backup_ledthis is the output:
looking at device '/devices/platform/gpio-leds/leds/status:blue:backup_led': KERNEL=="status:blue:backup_led" SUBSYSTEM=="leds" DRIVER=="" ATTR{brightness}=="0" ATTR{max_brightness}=="1" ATTR{power/control}=="auto" ATTR{power/runtime_active_time}=="0" ATTR{power/runtime_status}=="unsupported" ATTR{power/runtime_suspended_time}=="0" ATTR{trigger}=="[none] usb-gadget usb-host kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock f1072004.mdio-bus-mii:00:link f1072004.mdio-bus-mii:00:1Gbps f1072004.mdio-bus-mii:00:100Mbps f1072004.mdio-bus-mii:00:10Mbps usbport timer oneshot disk-activity disk-read disk-write ide-disk1 ide-disk2 mtd nand-disk heartbeat gpio cpu cpu0 default-on panic rfkill-any rfkill-none"
KERNEL=="status:blue:backup_led", ATTR{trigger}="usb-host" KERNEL=="status:blue:disk1_led", ATTR{trigger}="ide-disk1" KERNEL=="status:blue:disk2_led", ATTR{trigger}="ide-disk2"
udevadm test /sys/class/leds/status:blue:backup_led
udevadm control --reload
cd /etc/systemd/system touch powerled-blink.service
[Unit] Description=Power led blinking at shutdown [Service] Type=oneshot RemainAfterExit=true ExecStart=/bin/true ExecStop=/bin/bash -c "echo timer > /sys/class/leds/status:blue:power_led/trigger" [Install] WantedBy=multi-user.target
systemctl daemon-reload systemctl enable powerled-blink reboot