Setup von geräten, die nicht mit ethtool wollen funktioniert jetzt auch
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_sysvinit@5223 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
4cb716afbe
commit
92d35e26ca
@ -111,6 +111,7 @@ case "$1" in
|
||||
ifconfig $DEVNAME up
|
||||
WAITTIME=7
|
||||
ZAHLER=0
|
||||
if ! ethtool $DEVNAME|grep -q "No data available"; then
|
||||
while [ ${ZAHLER} -le ${WAITTIME} ]; do
|
||||
if [ ! `ethtool $DEVNAME|grep Link|awk '{print $3}'` == "yes" ]; then
|
||||
(( ZAHLER++ ))
|
||||
@ -119,7 +120,11 @@ case "$1" in
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
if [ "`ethtool $DEVNAME|grep Link|awk '{print $3}'`" == "yes" ]; then
|
||||
if [ `ethtool $DEVNAME|grep Link|awk '{print $3}'` == "yes" ]; then
|
||||
/sbin/if_up $DEVNAME
|
||||
touch /var/run/net_up
|
||||
fi
|
||||
else
|
||||
/sbin/if_up $DEVNAME
|
||||
touch /var/run/net_up
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user