gns3-server/gns3server/compute/docker/resources/bin/udhcpc

9 lines
207 B
Plaintext
Raw Normal View History

#!/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 "$@"