#!/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”
Quick Links
Legal Stuff