LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-11-2015, 02:09 AM   #16
kamlipin
LQ Newbie
 
Registered: Dec 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled

Yes. If device wake up i must hold the button few seconds. If led change color to red then i must snap the button.
 
Old 12-11-2015, 07:07 AM   #17
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,727

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
You need to determine what init script checks the button status and add lines to delete the desired files. The init scripts should be in /etc/init.d. An editor could be on the system like pico but you might need to modify on another PC.

If your new script has errors it could put the device in a state where it can not be accessed anymore.
 
Old 12-11-2015, 10:18 AM   #18
kamlipin
LQ Newbie
 
Registered: Dec 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
OK. Fine. I understand what do u mean, but i think i try do this

Here are file in init.d folder:

http://s2.postimg.org/iyaj2j049/asd.jpg

Which file i must change?
 
Old 12-11-2015, 10:27 AM   #19
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,727

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
Guessing... Looks like switch_reboot.

Last edited by michaelk; 12-11-2015 at 10:29 AM.
 
Old 12-11-2015, 10:39 AM   #20
kamlipin
LQ Newbie
 
Registered: Dec 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
OK. Here is content of switch_reboot file::
http://s21.postimg.org/dp9cc6nh3/asd2.png
 
Old 12-11-2015, 02:51 PM   #21
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,727

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
It isn't obvious that this script is run when the reset button is pressed.
 
Old 12-13-2015, 01:22 PM   #22
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,897

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
there is a usercfg script too, but still isn't obvious which one will do the job. Actually you need to check the process itself, not the start/stop script, because that contains nothing but a start and stop command. In your case that would be switch_reboot, which is unknown for me
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent reset of network settings reset after cable unplug Mega-X Linux - Networking 5 01-02-2013 04:58 PM
my PC did not boot after pressing reset button. lekimoh Linux - General 6 02-09-2011 07:16 AM
What could be possible reasons of a server sending reset? soaptechie Linux - Networking 4 10-16-2010 05:09 PM
Reset Button glj Linux - General 10 07-14-2008 04:05 PM
reset the date on server enzo250gto Linux - General 1 12-10-2003 03:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration