1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-01-01 03:30:55 +00:00
gns3-server/gns3server/compute/docker/resources/bin/udhcpc

9 lines
207 B
Plaintext

#!/gns3/bin/busybox sh
SCRIPT="/gns3/etc/udhcpc/default.script"
EXTRA=""
[ "$(cat "/proc/$PPID/comm" 2>/dev/null)" = ifup ] && EXTRA="-t 3 -T 2 -A 1 -b"
exec /tmp/gns3/bin/udhcpc -s "$SCRIPT" $EXTRA "$@"