]> git.saurik.com Git - apple/launchd.git/blob - launchd/src/StartupItems/Disks
launchd-106.13.tar.gz
[apple/launchd.git] / launchd / src / StartupItems / Disks
1 #!/bin/sh
2
3 ##
4 # Local filesystems
5 ##
6
7 . /etc/rc.common
8
9 StartService ()
10 {
11 if [ ! -f /var/db/volinfo.database ]; then Uninitialized_VSDB=-YES-; fi
12
13 echo "Checking disks"
14 /sbin/autodiskmount -va
15
16 if [ "${Uninitialized_VSDB:=-NO-}" = "-YES-" ]; then
17 if [ -x /usr/sbin/vsdbutil ]; then
18 /usr/sbin/vsdbutil -i
19 fi
20 fi
21 }
22
23 StopService ()
24 {
25 return 0;
26 }
27
28 RestartService ()
29 {
30 return 0;
31 }
32
33 RunService "$1"