summaryrefslogtreecommitdiff
path: root/tools/saf51015I
diff options
context:
space:
mode:
Diffstat (limited to 'tools/saf51015I')
-rw-r--r--tools/saf51015I/11-eth1.link5
-rw-r--r--tools/saf51015I/12-eth2.link5
-rw-r--r--tools/saf51015I/13-eth3.link5
-rw-r--r--tools/saf51015I/14-eth4.link5
-rw-r--r--tools/saf51015I/15-eth5.link5
-rw-r--r--tools/saf51015I/16-eth6.link5
-rw-r--r--tools/saf51015I/17-eth7.link5
-rw-r--r--tools/saf51015I/18-eth8.link5
-rw-r--r--tools/saf51015I/19-eth9.link5
-rw-r--r--tools/saf51015I/20-eth10.link5
-rw-r--r--tools/saf51015I/21-eth11.link5
-rw-r--r--tools/saf51015I/22-eth12.link5
-rwxr-xr-xtools/saf51015I/90-saf51015I.chroot13
-rw-r--r--tools/saf51015I/99-default.link0
-rwxr-xr-xtools/saf51015I/saf51015I28
15 files changed, 101 insertions, 0 deletions
diff --git a/tools/saf51015I/11-eth1.link b/tools/saf51015I/11-eth1.link
new file mode 100644
index 00000000..16392247
--- /dev/null
+++ b/tools/saf51015I/11-eth1.link
@@ -0,0 +1,5 @@
+[Match]
+Path=pci-0000:02:00.0*
+
+[Link]
+Name=eth1
diff --git a/tools/saf51015I/12-eth2.link b/tools/saf51015I/12-eth2.link
new file mode 100644
index 00000000..444f6c96
--- /dev/null
+++ b/tools/saf51015I/12-eth2.link
@@ -0,0 +1,5 @@
+[Match]
+Path=pci-0000:03:00.0*
+
+[Link]
+Name=eth2
diff --git a/tools/saf51015I/13-eth3.link b/tools/saf51015I/13-eth3.link
new file mode 100644
index 00000000..2a2a41b8
--- /dev/null
+++ b/tools/saf51015I/13-eth3.link
@@ -0,0 +1,5 @@
+[Match]
+Path=pci-0000:04:00.0*
+
+[Link]
+Name=eth3
diff --git a/tools/saf51015I/14-eth4.link b/tools/saf51015I/14-eth4.link
new file mode 100644
index 00000000..6a86ae67
--- /dev/null
+++ b/tools/saf51015I/14-eth4.link
@@ -0,0 +1,5 @@
+[Match]
+Path=pci-0000:05:00.0*
+
+[Link]
+Name=eth4
diff --git a/tools/saf51015I/15-eth5.link b/tools/saf51015I/15-eth5.link
new file mode 100644
index 00000000..974084de
--- /dev/null
+++ b/tools/saf51015I/15-eth5.link
@@ -0,0 +1,5 @@
+[Match]
+Path=pci-0000:06:00.0*
+
+[Link]
+Name=eth5
diff --git a/tools/saf51015I/16-eth6.link b/tools/saf51015I/16-eth6.link
new file mode 100644
index 00000000..26169369
--- /dev/null
+++ b/tools/saf51015I/16-eth6.link
@@ -0,0 +1,5 @@
+[Match]
+Path=pci-0000:06:00.1*
+
+[Link]
+Name=eth6
diff --git a/tools/saf51015I/17-eth7.link b/tools/saf51015I/17-eth7.link
new file mode 100644
index 00000000..44346fb2
--- /dev/null
+++ b/tools/saf51015I/17-eth7.link
@@ -0,0 +1,5 @@
+[Match]
+Path=pci-0000:06:00.2*
+
+[Link]
+Name=eth7
diff --git a/tools/saf51015I/18-eth8.link b/tools/saf51015I/18-eth8.link
new file mode 100644
index 00000000..12e3fa30
--- /dev/null
+++ b/tools/saf51015I/18-eth8.link
@@ -0,0 +1,5 @@
+[Match]
+Path=pci-0000:06:00.3*
+
+[Link]
+Name=eth8
diff --git a/tools/saf51015I/19-eth9.link b/tools/saf51015I/19-eth9.link
new file mode 100644
index 00000000..f67a3da9
--- /dev/null
+++ b/tools/saf51015I/19-eth9.link
@@ -0,0 +1,5 @@
+[Match]
+Path=pci-0000:0a:00.0*
+
+[Link]
+Name=eth9
diff --git a/tools/saf51015I/20-eth10.link b/tools/saf51015I/20-eth10.link
new file mode 100644
index 00000000..1a6e959f
--- /dev/null
+++ b/tools/saf51015I/20-eth10.link
@@ -0,0 +1,5 @@
+[Match]
+Path=pci-0000:0a:00.1*
+
+[Link]
+Name=eth10
diff --git a/tools/saf51015I/21-eth11.link b/tools/saf51015I/21-eth11.link
new file mode 100644
index 00000000..e107e983
--- /dev/null
+++ b/tools/saf51015I/21-eth11.link
@@ -0,0 +1,5 @@
+[Match]
+Path=pci-0000:0b:00.0*
+
+[Link]
+Name=eth11
diff --git a/tools/saf51015I/22-eth12.link b/tools/saf51015I/22-eth12.link
new file mode 100644
index 00000000..e17caf5f
--- /dev/null
+++ b/tools/saf51015I/22-eth12.link
@@ -0,0 +1,5 @@
+[Match]
+Path=pci-0000:0b:00.1*
+
+[Link]
+Name=eth12
diff --git a/tools/saf51015I/90-saf51015I.chroot b/tools/saf51015I/90-saf51015I.chroot
new file mode 100755
index 00000000..aa4da964
--- /dev/null
+++ b/tools/saf51015I/90-saf51015I.chroot
@@ -0,0 +1,13 @@
+#!/bin/sh
+echo "ShowStatus=yes" >> /etc/systemd/system.conf
+
+echo I: Disable default link rule.
+rm /lib/systemd/network/99-default.link
+touch /lib/systemd/network/99-default.link
+rm /lib/udev/rules.d/65-vyatta-net.rules
+touch /lib/udev/rules.d/65-vyatta-net.rules
+rm /lib/udev/rules.d/75-persistent-net-generator.rules
+touch /lib/udev/rules.d/75-persistent-net-generator.rules
+
+echo I: Update initramfs.
+update-initramfs -u
diff --git a/tools/saf51015I/99-default.link b/tools/saf51015I/99-default.link
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/tools/saf51015I/99-default.link
diff --git a/tools/saf51015I/saf51015I b/tools/saf51015I/saf51015I
new file mode 100755
index 00000000..7dcaf034
--- /dev/null
+++ b/tools/saf51015I/saf51015I
@@ -0,0 +1,28 @@
+#!/bin/sh -e
+
+PREREQS=""
+
+prereqs() { echo "$PREREQS"; }
+
+case "$1" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+. /usr/share/initramfs-tools/hook-functions
+
+mkdir -p $DESTDIR/etc/systemd/network
+cp -p /etc/systemd/network/*.link $DESTDIR/etc/systemd/network/
+
+mkdir -p $DESTDIR/lib/udev/rules.d
+cp -p /lib/udev/rules.d/50-firmware.rules $DESTDIR/lib/udev/rules.d/
+cp -p /lib/udev/rules.d/50-udev-default.rules $DESTDIR/lib/udev/rules.d/
+cp -p /lib/udev/rules.d/55-dm.rules $DESTDIR/lib/udev/rules.d/
+cp -p /lib/udev/rules.d/60-cdrom_id.rules $DESTDIR/lib/udev/rules.d/
+cp -p /lib/udev/rules.d/60-persistent-storage-dm.rules $DESTDIR/lib/udev/rules.d/
+cp -p /lib/udev/rules.d/60-persistent-storage.rules $DESTDIR/lib/udev/rules.d/
+cp -p /lib/udev/rules.d/75-net-description.rules $DESTDIR/lib/udev/rules.d/
+cp -p /lib/udev/rules.d/80-drivers.rules $DESTDIR/lib/udev/rules.d/
+cp -p /lib/udev/rules.d/80-net-setup-link.rules $DESTDIR/lib/udev/rules.d/