From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux kernel packages development <devel-kernel@altlinux.ru>
Subject: Re: [d-kernel] update startup?
Date: Sat, 7 Feb 2004 15:30:42 +0300
Message-ID: <20040207123042.GD16725@basalt.office.altlinux.org> (raw)
In-Reply-To: <20040207105401.GC5936@sam-solutions.net>
[-- Attachment #1: Type: text/plain, Size: 777 bytes --]
On Sat, Feb 07, 2004 at 12:54:01PM +0200, Alexander Bokovoy wrote:
[...]
> > > - поддержка определения версии запущенного ядра в /etc/init.d/functions
> >
> > Вопрос только в выборе удачного интерфейса.
> > Может, стоит обсудить?
> Сейчас я просто взял код из vconfig и обернул (init.d/functions):
>
> RegisterKernelVersion()
> {
> KV=`/bin/uname -r |/bin/cut -d- -f1`
> [ -n "$KV" ]
> KV_MAJOR=`echo "$KV" |/bin/cut -d. -f1`
> [ -n "$KV_MAJOR" ]
> KV_MINOR=`echo "$KV" |/bin/cut -d. -f2`
> [ -n "$KV_MINOR" ]
> }
>
> Обернуто в функцию, чтобы не засорять пространство имен и не выполнять эти
> вызовы, когда не требуется.
Альтернатива - использовать /sbin/kernelversion* (предварительно исправив
опечатку в них) из modutils.
Что лучше?
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-02-07 12:30 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-06 16:44 Alexander Bokovoy
2004-02-06 20:29 ` Mikhail Zabaluev
2004-02-07 10:48 ` Alexander Bokovoy
2004-02-07 11:26 ` Michael Shigorin
2004-02-07 11:40 ` Alexander Bokovoy
2004-02-07 12:04 ` Michael Shigorin
2004-02-07 12:09 ` Alexander Bokovoy
2004-02-07 12:21 ` Michael Shigorin
2004-02-07 12:27 ` Alexander Bokovoy
2004-02-07 13:14 ` Mikhail Zabaluev
2004-02-07 13:20 ` Alexander Bokovoy
2004-02-09 7:41 ` Anton Farygin
2004-02-09 12:52 ` Michael Shigorin
2004-02-07 12:16 ` Sergey Vlasov
2004-02-07 12:26 ` Dmitry V. Levin
2004-02-07 12:44 ` Alexander Bokovoy
2004-02-09 7:15 ` Anton Farygin
2004-02-06 21:15 ` Dmitry V. Levin
2004-02-07 10:54 ` Alexander Bokovoy
2004-02-07 12:30 ` Dmitry V. Levin [this message]
2004-02-07 12:35 ` Alexander Bokovoy
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=20040207123042.GD16725@basalt.office.altlinux.org \
--to=ldv@altlinux.org \
--cc=devel-kernel@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 kernel packages development
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/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 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
public-inbox-index devel-kernel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git