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 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bin/slup (limited to 'bin/slup') 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/ -- cgit v1.2.3