[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Thread Closed 
Watchdog script to get rid of wireless (WiFi) disconnections
09-19-2009, 07:42 PM
Post: #16
RE: Watchdog script to get rid of wireless (WiFi) disconnections
Hi hooijschuur,

Sorry I can't remember which package installed "/bin/nice" on my box. Maybe someone here knows ?

Anyhow, the "nice" command is not mandatory. You can just remove the "/bin/nice -n-20" part, and it will work fine (albeit with normal instead of highest priority).
Find all posts by this user
09-20-2009, 09:12 PM
Post: #17
RE: Watchdog script to get rid of wireless (WiFi) disconnections
The script is working

but i have a question about rebooting etc

does it also work with a rt 2570 dongle ?

(09-19-2009 07:42 PM)keramidas Wrote:  Hi hooijschuur,

Sorry I can't remember which package installed "/bin/nice" on my box. Maybe someone here knows ?

Anyhow, the "nice" command is not mandatory. You can just remove the "/bin/nice -n-20" part, and it will work fine (albeit with normal instead of highest priority).
Find all posts by this user
09-20-2009, 09:24 PM
Post: #18
RE: Watchdog script to get rid of wireless (WiFi) disconnections
(09-20-2009 09:12 PM)hooijschuur Wrote:  The script is working

but i have a question about rebooting etc

does it also work with a rt 2570 dongle ?
Yes sure, should work with any dongle that your NMT supports.
Do you have another question about rebooting ?
Find all posts by this user
09-22-2009, 12:04 PM
Post: #19
RE: Watchdog script to get rid of wireless (WiFi) disconnections
(09-20-2009 09:24 PM)keramidas Wrote:  Yes sure, should work with any dongle that your NMT supports.
Do you have another question about rebooting ?

the usb dongle rt2570 is not official supported.
but i used a driver from this forum.

http://www.networkedmediatank.com/showth...alink+2570

i also use lighthttpd and mpd.

if i use them will the tank still shutdown
Find all posts by this user
09-22-2009, 01:12 PM
Post: #20
RE: Watchdog script to get rid of wireless (WiFi) disconnections
Yes, as far as I know, my script will never prevent your NMT from shutting down.
Find all posts by this user
11-26-2009, 10:56 PM (This post was last modified: 11-26-2009 10:58 PM by Mar_1910.)
Post: #21
RE: Watchdog script to get rid of wireless (WiFi) disconnections
Can I use this script for bring the wirless connection on after reboot/power failure?
I try it, but after modyfication I had my PH unstable (I couldn't connect throught telnet, connection was broken).
I have used the script from post #1.
I was trying to use the script from pos #11 but it is written about transmission (I am not using it, cTorrent).
I need this script only for bring the connection on after reboot (after connection to wirless it is on for few days, no problem with loosing connection).

Maybe some version3? Smile
Find all posts by this user
11-27-2009, 10:53 AM
Post: #22
RE: Watchdog script to get rid of wireless (WiFi) disconnections
Hi Mar_1910,

No indeed the script as-is will not do what you want after a reboot, because when it starts it detects the network settings, and then attempts to preserve them as long as the box is running.

In your case, after a reboot the network settings are incorrect and then the script is launched, so you need to modify the script so that it uses your own hardcoded correct network settings, instead of detecting them.

I'm on vacation and writing this on my smartphone right now - maybe somebody here can help you with modifying the script for your purpose ?
Find all posts by this user
11-27-2009, 07:40 PM
Post: #23
RE: Watchdog script to get rid of wireless (WiFi) disconnections
how does this script affect hdd spindowns? I presume the hdd will never spin down, correct?

I am running similar script to reboot my cable modem, but I use a cron job. I manage to keep my connection alive but at the cost of constantly spinning the hdd Sad
Find all posts by this user
11-27-2009, 09:32 PM
Post: #24
RE: Watchdog script to get rid of wireless (WiFi) disconnections
This script by itself writes nothing to the disk, so it could run completely in page cache, without the HDD spinning up. But maybe some executable involved may write something to the syslog, so the spin up issue would be a matter of system configuration. Even if writes couldn't be prevented, one could still enable the Linux "laptop_mode" to dramatically increase time between spin-ups... Also, the directory/file targeted by the writes, could be moved to a USB key and symlinked...
I don't have the PCH handy, so these are just shots in the dark.
Find all posts by this user
12-14-2009, 11:34 PM
Post: #25
RE: Watchdog script to get rid of wireless (WiFi) disconnections
This looks pretty good, I'll have to try it when I get back home.

The problem I am having is that FTP did not seem to be working when the power was turned off (light be red, rather than blue), could not find the HDX, ping it, or anything else (I have it set to wireless auto with a static path configured in my router).

I am hoping this works better. I really don't want to have to turn on the HDX, establish a connection, run to the computer and ftp everything across before the connection dies every time.
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Star [Apps] Bierdopje 4 NMT PHP script SilverViper 4 1,301 11-26-2012 04:57 PM
Last Post: Djiest
  Need help debugging a simple script to enable NTFS write on HDD user33 10 3,175 04-05-2011 06:05 PM
Last Post: nuke12
  Help with Server Timeout Error running a script hindibuff 0 1,667 03-29-2011 06:21 AM
Last Post: hindibuff
Bug Executing a script on the server from the NMT? johnk 6 3,173 02-21-2011 10:59 PM
Last Post: johnk
  [AUDIO] lastfm script (bookmarks, auto-login, etc.) mk11 81 35,167 10-09-2010 01:45 AM
Last Post: opfeifer
  Wifi On/Off switch project with Java Mika gozothegreat 11 4,465 09-02-2010 08:07 AM
Last Post: gozothegreat
  help with auto unrar script. kiranos 0 1,762 05-15-2010 10:24 AM
Last Post: kiranos
  Launch script after playing a video antro31 4 1,945 04-03-2010 06:32 PM
Last Post: antro31
  Wireless never automatically connects after a restart (always have to press SAVE) soomrox 2 1,542 03-18-2010 12:38 PM
Last Post: cavinsmither
Exclamation Scheduled playback script kdavid 0 968 03-16-2010 10:27 AM
Last Post: kdavid

Forum Jump: