Dry Falls wrote:rerwin wrote:This would seem to distress new users: at first boot-up my wired ethernet device is not found, even though it was working before I booted up EasyOS the first time after installation to the USB flash drive. There was no network icon in the tray. (This is not new misbehaviour.)
I had similar issues when I added nm to lighthouse. Added this to rc.local:
Code: Select all
/etc/rc.d/rc.networkmanager restart
df
Richard (rerwin) posted back on page 162, about this problem, and Dry Falls proposed above response, thaf worked for rerwin.
I am wondering if we could put a fix into /usr/sbin/delayedrun. It currently has this code:
#190215 /etc/rc.d/rc.network_eth brings up interfaces, /usr/local/pup_event/netchg
#is called from pup_event_frontend_d whenever network change, however at bootup
#it might need to be triggered here... only doing this for ethernet... 190217...
if grep -E 'connectwizard| sns' /usr/local/bin/defaultconnect >/dev/null; then
sleep 3
FIP="$(getlocalip | grep '^[^l]')" #test if already a lease assigned.
if [ "$FIP" == "" ];then
CARS="$(grep -H -x '1' /sys/class/net/eth[0-9]/carrier 2>/dev/null)"
if [ "$CARS" ];then
#take lo down then up, will trigger network event, end up calling netchg...
ip link set lo down
ip link set lo up
fi
fi
fi
maybe change it to:
#190215 /etc/rc.d/rc.network_eth brings up interfaces, /usr/local/pup_event/netchg
#is called from pup_event_frontend_d whenever network change, however at bootup
#it might need to be triggered here... only doing this for ethernet... 190217...
if grep -E 'connectwizard| sns
| nm-setup' /usr/local/bin/defaultconnect >/dev/null; then
sleep 3
FIP="$(getlocalip | grep '^[^l]')" #test if already a lease assigned.
if [ "$FIP" == "" ];then
CARS="$(grep -H -x '1' /sys/class/net/eth[0-9]/carrier 2>/dev/null)"
if [ "$CARS" ];then
#take lo down then up, will trigger network event, end up calling netchg...
#ip link set lo down
#ip link set lo up
/etc/init.d/rc.networkmanager restart
fi
fi
fi
Maybe could first try with just taking lo down then up, if that doesn't do anything, comment those two lines out and insert restarting rc.networkmanager.
I don't have the problem, so you guys will have to try this.