summaryrefslogtreecommitdiff
path: root/bin/update_slack_kernel
diff options
context:
space:
mode:
Diffstat (limited to 'bin/update_slack_kernel')
-rwxr-xr-xbin/update_slack_kernel5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/update_slack_kernel b/bin/update_slack_kernel
new file mode 100755
index 0000000..90eac82
--- /dev/null
+++ b/bin/update_slack_kernel
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+[ "$USER" = root ] || exec sudo "$0" "$@"
+
+geninitrd && cd /boot && cp -p vmlinuz initrd.gz efi/EFI/Slackware/