From 2c1809bfabcef9d74e9a7da58a694a320733a64f Mon Sep 17 00:00:00 2001 From: pmikus Date: Thu, 8 Apr 2021 12:12:30 +0000 Subject: Remove obsolete image builder Signed-off-by: pmikus Change-Id: I6cb73a6b9fbbdec2d7127f2457cbe21d12cd3e64 --- .../nested/image-patches/03-network | 37 ---------------------- 1 file changed, 37 deletions(-) delete mode 100755 resources/tools/disk-image-builder/nested/image-patches/03-network (limited to 'resources/tools/disk-image-builder/nested/image-patches/03-network') diff --git a/resources/tools/disk-image-builder/nested/image-patches/03-network b/resources/tools/disk-image-builder/nested/image-patches/03-network deleted file mode 100755 index e7d215c00a..0000000000 --- a/resources/tools/disk-image-builder/nested/image-patches/03-network +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh - -patch boot/grub/menu.lst <<"_EOF" -17c17 -< kernel /boot/bzImage rw root=/dev/sda1 rootwait console=ttyS0,115200n8 ---- -> kernel /boot/bzImage rw root=/dev/sda1 rootwait ipv6.disable=1 console=ttyS0,115200n8 -_EOF - -patch etc/network/interfaces <<"_EOF" -4a5,7 -> -> auto mgmt0 -> iface mgmt0 inet dhcp -_EOF - -patch etc/init.d/S40network <<"_EOF" -11a12,29 -> -> # Rename interfaces. The e1000 interface is managment. -> NUM_VIRTIO=0 -> NUM_MGMT=0 -> for dev in /sys/class/net/eth* -> do -> devname=`basename $dev` -> driver=`readlink ${dev}/device/driver` -> if test "${driver#*virtio}" != "$driver" -> then -> ip link set dev $devname name virtio${NUM_VIRTIO} -> NUM_VIRTIO=$(($NUM_VIRTIO+1)) -> else -> ip link set dev $devname name mgmt${NUM_MGMT} -> NUM_MGMT=$((NUM_MGMT+1)) -> fi -> done -> -_EOF -- cgit 1.2.3-korg