summaryrefslogtreecommitdiff
path: root/0001-changing-busybox-udhcpc-script-path.patch
blob: e5dea199e8d947b7816247fb658726d7b1aecf99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 1e1ab0ad3244db7f42585a0a952051b834de0b83 Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Tue, 12 May 2020 07:05:26 +0200
Subject: [PATCH] changing busybox udhcpc script path

---
 gns3server/compute/docker/resources/init.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gns3server/compute/docker/resources/init.sh b/gns3server/compute/docker/resources/init.sh
index 8040d02..987a03b 100755
--- a/gns3server/compute/docker/resources/init.sh
+++ b/gns3server/compute/docker/resources/init.sh
@@ -29,6 +29,9 @@ if [ ! -d /tmp/gns3/bin ]; then
 	do
 	  ln -s /gns3/bin/busybox "/tmp/gns3/bin/$applet"
 	done
+	rm /tmp/gns3/bin/udhcpc
+	echo -e '#!/bin/sh\n/gns3/bin/busybox udhcpc -s /gns3/etc/udhcpc/default.script' > /tmp/gns3/bin/udhcpc
+	chmod 777 /tmp/gns3/bin/udhcpc
 fi
 
 #  Restore file permission and mount volumes
-- 
2.26.2