From d7840b0eaf296c474853e7d69117152f562ffd19 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sat, 5 Dec 2015 09:27:51 +0100 Subject: [PATCH] Making sysupgrade available for all platforms. --- zsh_functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zsh_functions b/zsh_functions index b75a19f..405e06b 100644 --- a/zsh_functions +++ b/zsh_functions @@ -3,10 +3,10 @@ twitch() { } sysupgrade(){ - old_kernel=$(pacman -Q linux-raspberrypi | awk '{print $2 }') + old_kernel=$(pacman -Q linux-raspberrypi 2>/dev/null | awk '{print $2 }') sudo pacmatic -Syu - new_kernel=$(pacman -Q linux-raspberrypi | awk '{print $2 }') - if [[ $old_kernel != $new_kernel ]] + new_kernel=$(pacman -Q linux-raspberrypi 2>/dev/null | awk '{print $2 }') + if [[ $old_kernel != $new_kernel && $(uname -m) == 'armv7l' ]] then sudo mkinitcpio -k "$new_kernel-ARCH" -g /boot/initrd fi