Use a stock BusyBox for the Docker integration

This commit is contained in:
grossmj committed 2023-01-01 17:04:48 +08:00
1 parent b3a6b9173b
commit e5c8ae4bde
5 files changed
+56 -3

No files matched your search

Binary file not shown.
@@ -0,0 +1,15 @@
#!/gns3/bin/busybox sh
SCRIPT="/gns3/etc/udhcpc/default.script"
if [ "$(cat "/proc/$PPID/comm" 2>/dev/null)" = ifup ]; then
# remove "-n" argument
for arg do
shift
[ "$arg" = "-n" ] || set -- "$@" "$arg"
done
# add default parameters
set -- -t 3 -T 2 -A 1 -b "$@"
fi
exec /tmp/gns3/bin/udhcpc -s "$SCRIPT" "$@"