summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2021-08-08 15:39:55 +0200
committerpks <pks@pks.rocks>2021-08-08 15:39:55 +0200
commit519e9158e8e0860b99104868643dfd44a8fd8a4b (patch)
treed400f839c485f09e78455f57a81c08a1efa6a08a /scripts
parentf3d725b0eddb643016a5cda9ba5eea62fed0d96f (diff)
overhaulHEADmaster
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/create9
-rwxr-xr-xscripts/install8
2 files changed, 17 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
diff --git a/scripts/install b/scripts/install
new file mode 100755
index 0000000..4d6fa1b
--- /dev/null
+++ b/scripts/install
@@ -0,0 +1,8 @@
+#!/usr/bin/env zsh
+
+if [ -f /tmp/initramfs.cpio.xz ]; then
+ sudo mv /tmp/initramfs.cpio.xz /boot
+ sudo lilo
+else
+ echo "Couldn't find /tmp/initramfs.cpio.xz"
+fi