From: Michael Shigorin <mike@osdn.org.ua>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: [sisyphus] update kernel modules (was: звук слетел окончательно!)
Date: Tue, 10 May 2005 15:56:08 +0300
Message-ID: <20050510125608.GH22379@osdn.org.ua> (raw)
In-Reply-To: <42809880.5010203@ricom.ru>
[-- Attachment #1.1: Type: text/plain, Size: 410 bytes --]
On Tue, May 10, 2005 at 03:18:24PM +0400, Alexey Morsov wrote:
> >Дык, никогда и не было, чтобы ядра и ядерный модули автоматом
> >ставились.
> окей - тогда как догадаться какую сборку одного модуля мне
> ставить? Где указано какая нужна? Или это "у кого как" ?
Ещё раз кидаю скриптик имени lav@. :)
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
[-- Attachment #1.2: update_kernel_modules.sh --]
[-- Type: text/plain, Size: 1341 bytes --]
#!/bin/sh
# Vitaly Lipatov <lav@etersoft.ru>, 2004
# Устанавливает самое новое ядро
# Обновляет уже установленные модули до версии
# для самого нового установленного ядра
echo "Update kernel with modules: Vitaly Lipatov <lav@etersoft.ru>, 2004-2005"
# Тип ядра (получаем из текущего запущенного)
TYPESYS=`uname -r | cut -d "-" -f2,3`
test -z "$1" || TYPESYS=$1
SUDO=sudo
if [ "$UID" == "0" ]
then
SUDO=
fi
echo "Try to install newest kernel image '$TYPESYS' type"
LISTKER=`$SUDO apt-get install kernel-image-$TYPESYS -y | grep "\#" | grep -v "\["`
LISTKER=`echo $LISTKER | cut -d " " -f 1 | head -n 1`
echo "Install new kernel $LISTKER"
$SUDO apt-get install $LISTKER -y
echo "Check for newest kernel..."
NEWESTKERNEL=`rpm -qa kernel-image-${TYPESYS}* | sort | tail -n 1`
INSTVER=`rpm -q $NEWESTKERNEL --queryformat "%{VERSION}-$TYPESYS-%{RELEASE}"`
echo "Updates modules for kernel: $INSTVER ..."
ALLMODULES=`apt-cache pkgnames kernel-modules | sed -e "s/kernel-modules-//g" | sed -e "s/-.*$//g" | sort | uniq | grep -v kernel`
LISTFORUPDATE=""
for i in $ALLMODULES
do
PKGNAME=kernel-modules-$i
if rpm -q $PKGNAME-$TYPESYS >/dev/null
then
echo modules-$i is installed, updating...
LISTFORUPDATE="$LISTFORUPDATE$PKGNAME-$INSTVER "
fi
done
$SUDO apt-get install $LISTFORUPDATE -y
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-05-10 12:56 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-06 19:31 [sisyphus] звук слетел окончательно! Alexey Morsov
2005-05-06 19:40 ` [sisyphus] " Konstantin A. Lepikhov
2005-05-06 20:42 ` Alexey Morsov
2005-05-07 8:42 ` Alexey Morsov
2005-05-07 9:43 ` Sergey Vlasov
2005-05-07 12:54 ` Alexey Morsov
2005-05-10 8:24 ` Michael Shigorin
2005-05-10 10:49 ` Alexey Morsov
2005-05-10 11:03 ` Led
2005-05-10 11:18 ` Alexey Morsov
2005-05-10 12:56 ` Michael Shigorin [this message]
2005-05-10 14:21 ` [sisyphus] update kernel modules Alexey Morsov
2005-05-06 19:42 ` [sisyphus] звук слетел окончательно! Alexander Kuprin
2005-05-06 19:51 ` Eugene Vlasov
2005-05-06 20:44 ` Alexey Morsov
2005-05-06 20:02 ` Fiodor Sorex
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050510125608.GH22379@osdn.org.ua \
--to=mike@osdn.org.ua \
--cc=sisyphus@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git