Button On expansion Dock
- 
					
					
					
					
 What Does It Do? 
 Sorry For The Silly Question!
 
- 
					
					
					
					
 Hi Kyle it might be the reset button. I don't have the expansion Dock to test though. 
 
- 
					
					
					
					
 @Kyle It is a programmable button that allows you to do whatever you want. By default, it is a factory reset button. If you press and hold it for around 10 seconds, it will reflash the Omega back into the factory settings. 
 
- 
					
					
					
					
 @Boken-Lin @Maurice Thanks Guys! Much appreciated! 
 
- 
					
					
					
					
 Is there anything like a device node or other way to trigger an action in Linux based on the button? Maybe a daemon that detects when it is pressed? I'd love to be able to trigger a shell script when it's pressed. 
 
- 
					
					
					
					
 @Ronald-McCollam Currently the only way to do it is through this kernel module here: https://github.com/OnionIoT/gpio-irq. It gets the kernel to send an IRQ, you can program the handler to execute a shell command. We will be integrating this into the /sys/class/gpiointerface to allow for edge detection.
 
- 
					
					
					
					
 @Ronald-McCollam Actually, there's a much easier way to customize the button. You can simply edit the script at /etc/rc.button/resetto get it to do whatever you want.
 
- 
					
					
					
					
 @Boken-Lin Awesome, I think hacking the reset script will do the trick for me, as all I want to do is launch a shell script anyway.  
 
