summaryrefslogtreecommitdiff
path: root/tools/dell/vep-hook
diff options
context:
space:
mode:
Diffstat (limited to 'tools/dell/vep-hook')
-rwxr-xr-xtools/dell/vep-hook28
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/dell/vep-hook b/tools/dell/vep-hook
new file mode 100755
index 00000000..7dcaf034
--- /dev/null
+++ b/tools/dell/vep-hook
@@ -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/