On Fri, 21 Nov 2014 10:55:04 -0800
David <[email protected]> dijo:

>You may want to be using ifup and ifdown instead of ifconfig up /
>down. I say this because one normally initiates pump or dhclient after 
>ifconfig up unless you specify an IP address with the up. This is 
>confirmed on cursory reading of the man page for ifup and ifconfig,
>and your personal environment doesn't use DHCP from what I recall,
>hence the suggestion for ifup / ifdown.

That was the trick. I replaced both with ifup and ifdown, and now it
reconnects:

#!/bin/bash
sudo ifdown eth1
wget -qO - http://192.168.0.1/DATALOG | grep 'DATALOG.*fname' | sed -e
"s/^.*fname\"\:\"//" -e "s/\", \"fsize.*//" | while read line; do
cd /home/jjj/CPAP/Resmed/DATALOG; wget -nc
"http://192.168.0.1/DATALOG/$line";done 
sudo ifup eth1

Thanks!
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to