From: "Вадим Илларионов" <DIMMeach@NewMail.ru> To: Сизиф <sisyphus@altlinux.ru> Subject: [sisyphus] Настройка винтов-сидюков при запуске Date: Tue, 12 Feb 2002 22:58:15 +0800 Message-ID: <20020212225815.6766a521.DIMMeach@NewMail.ru> (raw) [-- Attachment #1: Type: text/plain, Size: 1243 bytes --] В скрипте /etc/rc.d/scripts/idetune имеется ряд серьёзных недоработок. 1) Конструкция SourceIfNotEmpty /etc/sysconfig/harddisks && sourced=1 SourceIfNotEmpty /etc/sysconfig/harddisk/hd$i && sourced=1 пытается подставить параметры из двух файлов, буде таковые имеются. Не лучше ль для начал глянуть в harddisk/hd$i, а уж если такового не окажется, вставить общие для всех параметры из harddisks? 2) В разных секциях перечисляются общие для винтов и сидюков параметры. Не вынести ли специфичные для винта - в одну, сидюка - в другую, общие же скомпоновать? 3) Не определить ли автоматом разнящийся у разных устройств параметр -c$EIDE_32BIT вместо того, чтоб искать его вручную, пихать затем в конфиг? 4) СтОит ли вносить модификатор && [ "$PARAM" -ge 0 ] если в конфиг-файле стоИт либо PARAM= либо не стоит? ;) А ежели вдруг ПОНАДОБИЛОСЬ глючному винту отрубить DMA/LBA/ИТД? 5) Не оформить ли маловразумительное "Setting parameters for hd$i" как "Setting parameters for Primary|Secondary|etc Master|Slave"? Мелочь, а приятно. Переработанный с учётом вышеизложенного, потерявший в весе, и тем не менее набравший в функциональности скрипт прилагается. Искренне свой, Дымыч. P.S. Теперь точно - прилагается. [-- Attachment #2: idetune --] [-- Type: application/octet-stream, Size: 1989 bytes --]
next reply other threads:[~2002-02-12 14:58 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-02-12 14:58 Вадим Илларионов [this message] 2002-02-12 15:12 ` Dmitry V. Levin 2002-02-12 17:27 ` Вадим Илларионов 2002-02-13 10:08 ` Dmitry V. Levin
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=20020212225815.6766a521.DIMMeach@NewMail.ru \ --to=dimmeach@newmail.ru \ --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