From: "Владимир Гусев" <vova1971@narod.ru> To: ALT Linux Community general discussions <community@lists.altlinux.org> Subject: [Comm] xserverrc и аргумент $DPI Date: Mon, 1 Dec 2008 22:53:20 +0300 Message-ID: <20081201225320.53bceb5d@book.gusev.ru> (raw) как в /etc/X11/xinit/xserverrc нового образца жестко прописать dpi, что-то я не разберусь сходу в синтаксисе, практики нет, а домысливать что-то эмпирически не получается... Вот начало: #!/bin/sh config='/etc/sysconfig/xserver' [ ! -s "$config" ] || . "$config" is_yes() { case "$1" in yes|Yes|YES|true|True|TRUE|on|On|ON|Y|y|1) return 0 ;; esac return 1 } OPTIONS= check_arg() { OPTIONS="$OPTIONS${1:+ $2 $1}" } check_yes() { if [ -n "$1" ]; then is_yes "$1" && OPTIONS="$OPTIONS $2" || OPTIONS="$OPTIONS${3:+ $3}" fi } check_arg "$AUDIT" -audit check_arg "$DPI" -dpi check_arg "$DEPTH" -depth и т.д. Что тут? Дописать таким образом: check_arg "$DPI" -dpi 96 и все? Или нет? -- С уважением, Владимир Гусев
next reply other threads:[~2008-12-01 19:53 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-12-01 19:53 Владимир Гусев [this message] 2008-12-02 10:13 ` Sergey Vlasov 2008-12-02 10:51 ` Владимир Гусев
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=20081201225320.53bceb5d@book.gusev.ru \ --to=vova1971@narod.ru \ --cc=community@lists.altlinux.org \ /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