3 # captive Start/Stop the cron clock daemon.
5 # chkconfig: 2345 99 01
6 # description: Captive allows applications running under the GNU/Linux
7 # operating system to access NTFS drives. File system driver
8 # compatibility with VFAT, ISO9660 and EXT2 is also provided.
10 # Source function library.
11 . /etc/init.d/functions
13 # Never drop this lock - we need to catch manually mounts on system shutdown.
14 touch /var/lock/subsys/captive
18 # In fact this part is done during the boot anyway.
19 grep -q '\<captive-.*\<auto\>' /etc/fstab || return
21 fses="$(echo /sbin/mount.captive-*|sed 's#/sbin/mount[.]##g'|tr ' ' ,)"
22 if [ -z "$fses" ]; then
25 action $"Mounting captive filesystems: " mount -a -t "$fses"
32 # I did not find any way how to identify (or even mark) "captive-*"
33 # filesystems between the mounted ones.
34 # Devicename really must be set to the real devicename as otherwise
35 # mount(8) would try to mount "captive-*" twice during boot.
36 action $"Unmounting captive (FUSE) filesystems: " umount -a -t fuse
57 echo $"Usage: $0 {start|stop|restart}"