summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorOzan Çağlayan <ozancag@gmail.com>2012-12-22 13:04:12 +0200
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>2012-12-28 07:35:33 -0800
commitc1fc98280c5397e41f3cb923438f8d2e2b332627 (patch)
tree50edf4965b6f9701da9db74a716f760f8df08c65 /scripts
parente01f0f42da209c77184ba6428c79e69e73bad48b (diff)
update-initramfs: Silence lsb_release output
Silence lsb_release output to avoid command not found errors on distributions not having lsb_release like Fedora. Signed-off-by: Ozan Çağlayan <ozancag@gmail.com> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update-initramfs2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/update-initramfs b/scripts/update-initramfs
index fdfb8fc2..82127836 100755
--- a/scripts/update-initramfs
+++ b/scripts/update-initramfs
@@ -6,7 +6,7 @@
# of their distribution. This can also help people who may
# want to wireless-boot their systems.
-LSB_RED_ID=$(/usr/bin/lsb_release -i -s)
+LSB_RED_ID=$(/usr/bin/lsb_release -i -s &> /dev/null)
KLIB=/lib/modules/$(uname -r)/build
ver=$(echo $KLIB | awk -F "/lib/modules/" '{print $2}' | awk -F"/" '{print $1}')