ccie, vcp ccvp, rhce, giac, gcih, cisco, netscreen, netscaler, juniper, f5, security, virtualization, vmware

OpenStack Nerd, CCIE, DevOps Junkie

Changing the world, one person at a time

OpenStack Nerd, CCIE, DevOps Junkie header image 2

Why does SUSE linux make it so rough?

October 27th, 2006 · 1 Comment · linux, Technology, Uncategorized

#!/bin/sh
# Figure out kernel source version & you server location, echo string to install
# Written by Colin McNamara 10/27/2006
# http://www.2cups.com
# “The impossible we do difficult we do immidiatly, the impossible just takes a little longer.”
KERNELVER=`uname -r | sed ‘s/-smp//g; s/-bigsmp//g’`
PLATFORM=`uname -i`

YOUSERVER=`cat /var/lib/YaST2/you/config | grep LastServer= | sed ‘s/LastServer=”//g; s/;;”//g’`
YOU64=$YOUSERVER/$PLATFORM/update/SUSE-CORE/9/rpm/x86_64
YOU32=$YOUSERVER/$PLATFORM/update/SUSE-CORE/9/rpm/i586

if [[ `uname -i` = x86_64 ]]; then
echo $YOU64/kernel-source-$KERNELVER.x86_64.rpm

else
echo $YOU32/kernel-source-$KERNELVER.i586.rpm
fi

Copyright ©2008 | Colin McNamara | CCIE 18233 | All Rights Reserved”

http://www.2cups.com

“The difficult we do immediately, the impossible just takes a little longer.”

Tags: ····