Re: ifplugd launched from /etc/local.d stops after some seconds
Reply #2 –
Already done....
this is the script i adapted from the busybox source
#!/bin/bash
sleep 10
if="eth0"
if [[ ! -z `find /sys/class/net -name "$if"` ]]; then
if [ -f "/etc/network/interfaces" ]; then
/usr/bin/ifup -a
else
ip link set eth0 up
logger "Starting ifplugd on $if"
exec \
env - PATH="$PATH" \
/usr/bin/busybox softlimit \
/usr/bin/busybox setuidgid root \
/usr/bin/ifplugd -aqlMns -t3 -u8 -d8 -i "$if" -r "/etc/network/ifplugd_handler"
fi
fi
i will try to remove the ns flag from the command to see if ifplugd inserts some log.