summaryrefslogtreecommitdiff
path: root/scripts/create
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/create')
-rwxr-xr-xscripts/create9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/create b/scripts/create
new file mode 100755
index 0000000..567902a
--- /dev/null
+++ b/scripts/create
@@ -0,0 +1,9 @@
+#!/bin/zsh -x
+
+cp -a /etc/suspend.conf etc/
+find . \( ! -regex '.*/\..*' \) -print0 \
+ | sed "s|\./scripts||" \
+ | sed "s|\./scripts/create||" \
+ | sed "s|\./scripts/install||" \
+ | sed "s|\./README\.md||" \
+ | cpio --null -ov --format=newc | xz --check=crc32 > /tmp/initramfs.cpio.xz