mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 03:08:14 +00:00
Fix issues with recent busybox versions
* `busybox --install` does not exist * `sleep` does not take float values (e.g. 0.5).
This commit is contained in:
parent
a1922ef067
commit
c0be6875c2
@ -25,7 +25,10 @@ PATH=/gns3/bin:/tmp/gns3/bin:/sbin:$PATH
|
|||||||
# bootstrap busybox commands
|
# bootstrap busybox commands
|
||||||
if [ ! -d /tmp/gns3/bin ]; then
|
if [ ! -d /tmp/gns3/bin ]; then
|
||||||
busybox mkdir -p /tmp/gns3/bin
|
busybox mkdir -p /tmp/gns3/bin
|
||||||
/gns3/bin/busybox --install -s /tmp/gns3/bin
|
for applet in `busybox --list-full`
|
||||||
|
do
|
||||||
|
ln -s /gns3/bin/busybox "/tmp/gns3/bin/$applet"
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Restore file permission and mount volumes
|
# Restore file permission and mount volumes
|
||||||
@ -75,7 +78,7 @@ ip link set dev lo up
|
|||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
grep $GNS3_MAX_ETHERNET /proc/net/dev > /dev/null && break
|
grep $GNS3_MAX_ETHERNET /proc/net/dev > /dev/null && break
|
||||||
sleep 0.5
|
usleep 500000 # wait 0.5 seconds
|
||||||
done
|
done
|
||||||
|
|
||||||
# activate eth interfaces
|
# activate eth interfaces
|
||||||
|
Loading…
Reference in New Issue
Block a user