⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vold.example

📁 linux下自动mount各种即插即用设备的一个小程序源码 文件包含内容: /vold.h /vold.c /split.h /split.c /disktype-6/disktype.c
💻 EXAMPLE
字号:
#vold.conf - Configuration file for GNU/Linux Volume Daemon#Enables daemon mode - default no#background yes#Enables debug mode - default no#debug no#Defines the folder where all automatically found devices#will be mounted - no defaultvolumeroot /Volumes#The delay between automatic scans in seconds. - Default 5 seconds.#check_delay 2#The 'scan' tells vold what device to scan.#Syntax:#scan	<device>	<periodically>#<device> is the device to scan like '/dev/hda1'#<periodically> can be 'yes' or 'no' if set to yes, the device is probed all#check_delay seconds. If set to now the device is ONLY checked on SIGUSR1##Remark that you now have to write one entry per partition (hda1, hda2 etc.). In future#you can write '/dev/hda' and vold scans the partition table if there is one. Reading#partition tables is not yet supported.#scan	/dev/fd0	yes		#causes lots of errormessages on syslog, but it works :-)#scan	/dev/cdrom	1		#1 or yes or True is all the same. Also causes errormessages but worksscan	/dev/hda1	Truescan	/dev/hda2	1scan	/dev/hda3	1scan	/dev/hda4	1scan	/dev/hda5	Jascan	/dev/hda6	1scan	/dev/hda7	1scan	/dev/hda8	1scan	/dev/hda9	1scan	/dev/hda10	1scan	/dev/hda11	1scan	/dev/hda12	1scan	/dev/hda13	1scan	/dev/hda14	1scan	/dev/hda15	1scan	/dev/hda16	1scan	/dev/hda17	1scan	/dev/hda18	1scan	/dev/hda19	1scan	/dev/hda20	1# SCSI devices are normally detected by hotplug. you can write a small script that send a SIGUSR1 to vold. # you can use "cat /var/run/vold.pid" to get the pid (vold has to run as a daemon to create this file)scan	/dev/sda1scan	/dev/sda2scan	/dev/sda3scan	/dev/sda4scan	/dev/sda5scan	/dev/sda6scan	/dev/sda7scan	/dev/sda8scan	/dev/sda9scan	/dev/sda10scan	/dev/sda11scan	/dev/sda12scan	/dev/sda13scan	/dev/sda14scan	/dev/sda15scan	/dev/sdb1scan	/dev/sdb2scan	/dev/sdb3scan	/dev/sdb4scan	/dev/sdb5scan	/dev/sdb6scan	/dev/sdb7scan	/dev/sdb8scan	/dev/sdb9scan	/dev/sdb10scan	/dev/sdb11scan	/dev/sdb12scan	/dev/sdb13scan	/dev/sdb14scan	/dev/sdb15

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -