From 55874d247b7592f02798a0d4fb2a9f8477b4323b Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sun, 28 Jun 2015 19:28:50 +0200 Subject: [PATCH] Adding sysupgrade function. --- zsh_functions | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/zsh_functions b/zsh_functions index 63dd076..c199391 100644 --- a/zsh_functions +++ b/zsh_functions @@ -1,3 +1,14 @@ +sysupgrade(){ + old_kernel=$(pacman -Q linux-raspberrypi | awk '{print $2 }') + sudo pacmatic -Syu + new_kernel=$(pacman -Q linux-raspberrypi | awk '{print $2 }') + if [[ $old_kernel != $new_kernel ]] + then + sudo mkinitcpio -k "$new_kernel-ARCH" -g /boot/initrd + fi + cower -u +} + copy_img_to_usb(){ if [[ $1 = "" ]] then