From: Alexander Bokovoy <a.bokovoy@sam-solutions.net>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Re: lufs
Date: Thu, 1 Apr 2004 16:39:31 +0300
Message-ID: <20040401133931.GP3220@sam-solutions.net> (raw)
In-Reply-To: <20040401123734.GU29790@pyro.hopawar.private.net>
On Thu, Apr 01, 2004 at 07:37:34PM +0700, Alexey Morozov wrote:
> On Thu, Apr 01, 2004 at 12:02:26AM +0400, Vitaly Lipatov wrote:
> > Здравствуйте, Алексей!
> >
> > А с какой целью в пакете lufs существуют
> > /etc/auto.ftpfs -> /usr/bin/auto.ftpfs
> > /etc/auto.sshfs -> /usr/bin/auto.sshfs
> >
> > На мой взгляд, неверно делать ссылки на пользовательские программы
> > из etc.
> Ну, такова их изначальная природа (в смысле, дистрибутивная).
> Вообще это "заточки" под autofs, у которого егонные map'ы могут
> быть и исполняемыми файлами (man 5 autofs), хотя, честно говоря,
> я ни разу этой возможностью autofs не пользовался. Вообще, можно
> спросить у корифеев, что они скажут по этому поводу:-).
Вот еще один пример, не претендующий на полноту покрытия, но готовый
рассказывать о всех разделах воткнутой в USB флешки:
#!/bin/sh
RESOURCE=/proc/scsi/usb-storage-0/0
if [ -f $RESOURCE ] ; then
DEVNUMBER=$(cat $RESOURCE|grep Host|cut -f5 -d' '|sed 's/[a-z:]//g;'|tr '[0-9]' '[a-z]')
DEVATTACHED=$(cat $RESOURCE|grep Attached|cut -f2 -d:)
if [ "$DEVATTACHED" = " No " ] ; then
exit 1
fi
DEVPART=$(/sbin/fdisk -l /dev/sd${DEVNUMBER}|egrep "^/dev/"|cut -f1 -d' '|egrep "$1\$")
mkdir -p /mnt/usb/sd${DEVNUMBER}
for i in $DEVPART ; do
PARTITION=$(echo $i|cut -d/ -f3)
echo ":$i -rw,umask=0,user"
ln -s /mnt/usb/.auto/${PARTITION} /mnt/usb/sd${DEVNUMBER}/${PARTITION}
done
exit 0
fi
exit 1
--
/ Alexander Bokovoy
Samba Team http://www.samba.org/
ALT Linux Team http://www.altlinux.org/
Midgard Project Ry http://www.midgard-project.org/
prev parent reply other threads:[~2004-04-01 13:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-01 12:37 ` Alexey Morozov
2004-04-01 12:56 ` Alexander Bokovoy
2004-04-01 13:02 ` Alexey Morozov
2004-04-01 13:08 ` Alexander Bokovoy
2004-04-01 13:18 ` Dmitry V. Levin
2004-04-01 13:27 ` Alexander Bokovoy
2004-04-01 13:39 ` Alexander Bokovoy [this message]
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=20040401133931.GP3220@sam-solutions.net \
--to=a.bokovoy@sam-solutions.net \
--cc=devel@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 Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git