[FS#751] Add customisable SIGINT behaviour to procd

LEDE Bugs lede-bugs at lists.infradead.org
Tue May 2 03:25:47 PDT 2017


A new Flyspray task has been opened.  Details are below. 

User who did this - multiplexd (multiplexd) 

Attached to Project - LEDE Project
Summary - Add customisable SIGINT behaviour to procd
Task Type - Feature Request
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Very Low
Priority - Very Low
Reported Version - lede-17.01
Due in Version - Undecided
Due Date - Undecided
Details - I am running LEDE 17.01.1 on a Linksys NSLU2. 

The device has a power button on the front panel, which will boot the device when pressed when power is present. If the button is pressed when the device is running the device will reboot. I would like to be able to configure the device to power off when the button is pressed instead. 

I have tried editing some of the stock scripts in /etc/rc.button to no effect. I ran across [[https://wiki.openwrt.org/toh/linksys/nslu2/nslu2.hardware.button|this page]] on the OpenWrt wiki, which suggests that pressing the button causes SIGINT to be delivered to PID 1.

I took a look at the procd git repository, and procd reboots the system when it catches SIGINT. If this were configurable then procd could take specific action, such as powering the device down, when it receives a hardware interrupt.


More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=751



More information about the lede-bugs mailing list