From 9c5dc55abf1445e75abc8c15acfd37356730f972 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Mon, 7 Aug 2023 11:02:32 +0200 Subject: update --- bin/slup | 11 +++++++++++ bin/update_slack_kernel | 5 +++++ 2 files changed, 16 insertions(+) create mode 100755 bin/slup create mode 100755 bin/update_slack_kernel (limited to 'bin') diff --git a/bin/slup b/bin/slup new file mode 100755 index 0000000..72baede --- /dev/null +++ b/bin/slup @@ -0,0 +1,11 @@ +#!/bin/sh + +# Slackware packages update. + +[ "$USER" = root ] || exec sudo "$0" "$@" + +slackpkg -batch=on update +slackpkg upgrade-all + +[ /boot/vmlinuz -nt /boot/initrd.gz ] && + geninitrd && cd /boot && cp -p vmlinuz initrd.gz efi/EFI/Slackware/ 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/ -- cgit v1.2.3