summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
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