Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#751 - Add customisable SIGINT behaviour to procd #7987

Closed
openwrt-bot opened this issue May 2, 2017 · 0 comments
Closed

FS#751 - Add customisable SIGINT behaviour to procd #7987

openwrt-bot opened this issue May 2, 2017 · 0 comments
Labels

Comments

@openwrt-bot
Copy link

multiplexd:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant