The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

automount - автоматическое монтирование CD и floppy. (mount )


<< Предыдущая ИНДЕКС Поиск в статьях src Установить закладку Перейти на закладку Следующая >>
Ключевые слова: mount,  (найти похожие документы)
Date: 3 Mar 2000 14:48:55 +0300 From: Igor Roboul <igor@raduga.dyndns.org> Newsgroups: fido7.ru.linux Subject: automount - автоматическое монтирование CD и floppy. > помощи autofs Можно. Делюсь: # ----------------------------------- /etc/rc.autofs #!/bin/sh . /etc/defaults/rc.conf if [ X"${automount_enable}" = X"NO" ] ; then exit 0 fi for mnt in $automount_mountpoints ; do mnt1=`echo $mnt | sed -e 's/\./dot_/'` map=/etc/auto.$mnt1 eval automount_args=\$automount_${mnt1} if [ -n "${automount_args}" ] ; then options="${automount_args}" else options="" fi echo $automount_daemon $options /$mnt file $map $automount_daemon $options /$mnt file $map done # --------------------------- /etc/auto.dot_mnt cd -fstype=iso9660,ro :/dev/scd0 floppy -fstype=vfat :/dev/fd0 #---------------------------- # Кусок моего /etc/rc.conf automount_enable="YES" automount_mountpoints=".mnt" automount_dot_mnt="-t 30" # И кусок /etc/defaults/rc.conf automount_daemon="/usr/sbin/automount" Далее mkdir /.mnt mkdir /mnt cd / ln -s /.mnt/a /mnt/a ln -s /.mnt/cd /mnt/cd Все выглядит странно для любителей RedHat & SystemV (а также тех кто ничего другого не видел) :-) Просто мне нравятся BSD init scripts. Так что я взял и из FreeBSD к Linux скрипты прикрутил. Да и ладно. Если кому надо тот разберется _ЧТО_ и _ЗАЧЕМ_ я делал.

<< Предыдущая ИНДЕКС Поиск в статьях src Установить закладку Перейти на закладку Следующая >>

 Добавить комментарий
Имя:
E-Mail:
Заголовок:
Текст:




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру