ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@alt-linux.org>
To: ALT Linux Spring mailing list <mandrake-russian@altlinux.ru>
Subject: Re: [mdk-re] idetune
Date: Mon Aug 13 14:29:25 2001
Message-ID: <20010813144310.K11113@ldv.office.alt-linux.org> (raw)
In-Reply-To: <20010810140335.6a7f01a2.bga@kgok.murmansk.su>; from bga@kgok.murmansk.su on Fri, Aug 10, 2001 at 02:03:35PM +0400

[-- Attachment #1: Type: text/plain, Size: 1451 bytes --]

On Fri, Aug 10, 2001 at 02:03:35PM +0400, Баталов Григорий wrote:
>  В idetune есть такие строки про CD-ROM:
> ----------------------------
>  elif [ "$hdmedia" = cdrom ]; then
>       # Reset parameters.
> <skip>
>       SourceIfNotEmpty /etc/sysconfig/harddisks && sourced=1
>       SourceIfNotEmpty /etc/sysconfig/harddisk/hd$i && sourced=1
>       [ -n "$sourced" ] || continue
>       HDFLAGS=
>       if [ -n "$USE_DMA" ] && [ "$USE_DMA" != 0 ]; then
>            HDFLAGS="$HDFLAGS -q -d$USE_DMA"
> ----------------------------
>    Мне, да и многим другим, судя по рассылке, сильно помогает
>  отключение DMA на cd-rom-e. У меня при инициализации CD-ROM-a
>  DMA включено, было бы удобно отключать его idetune-ом.
>    Как я понял из этого скрипта, флажок "-d" будет выставлен
>  только если USE_DMA != 0. Т.е. включить DMA можно, а отключить
>  нельзя?

Вас бы устроил такой вариант:
if [ -n "$USE_DMA" ] && [ "$USE_DMA" -ge 0 ] 2>/dev/null; then
	HDFLAGS="$HDFLAGS -q -d$USE_DMA"
fi
(и аналогичные изменения в обработке остальных числовых параметров
hdparm'а)?


Regards,
	Dmitry

+-------------------------------------------------------------------------+
Dmitry V. Levin     mailto://ldv@alt-linux.org
ALT Linux Team      http://www.altlinux.ru/
Fandra Project      http://www.fandra.org/
+-------------------------------------------------------------------------+
UNIX is user friendly. It's just very selective about who its friends are.

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

  parent reply	other threads:[~2001-08-13 14:29 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-10 13:13 [mdk-re] samba-2.2.1a-alt3 cornet
2001-08-10 13:17 ` Alexander Bokovoy
2001-08-10 13:45   ` [mdk-re] idetune (was: samba-2.2.1a-alt3) Баталов Григорий
2001-08-10 14:14     ` [mdk-re] пошлый вопрос paul
2001-08-10 14:23       ` Баталов Григорий
2001-08-10 20:58         ` [mdk-re] ÐÏÛÌÙÊ ×ÏÐÒÏÓ Fred
2001-08-11 14:33           ` [mdk-re] пошлый вопрос cornet
2001-08-15  9:27             ` [mdk-re] рассылка письма по иногим адресам paul
2001-08-15 12:04               ` [mdk-re] " Mikhail Zabaluev
2001-08-15 12:43                 ` Mikhail Zabaluev
2001-08-15 12:13               ` [mdk-re] " Alex Savvin
2001-08-10 14:28       ` [mdk-re] пошлый вопрос Vyt
2001-08-10 14:34       ` cornet
2001-08-10 14:42       ` [mdk-re] " Sergey Sokolov
2001-08-10 21:08       ` Maksim Otstavnov
2001-08-12 10:22       ` [mdk-re] ÐÏÛÌÙÊ ×ÏÐÒÏÓ Russu V.F.
2001-08-13 14:29     ` Dmitry V. Levin [this message]
2001-08-13 15:03       ` [mdk-re] idetune Баталов Григорий
2001-08-10 13:29 ` [mdk-re] samba-2.2.1a-alt3 Лоивский М.А.

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=20010813144310.K11113@ldv.office.alt-linux.org \
    --to=ldv@alt-linux.org \
    --cc=mandrake-russian@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git