/[baselayout]/trunk/init.d/localmount
Gentoo

Contents of /trunk/init.d/localmount

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (show annotations) (download)
Sun Mar 10 22:57:28 2002 UTC (17 years, 8 months ago) by azarah
File size: 1247 byte(s)
lost of fixes

1 #!/sbin/runscript
2 # Copyright 1999-2002 Gentoo Technologies, Inc.
3 # Distributed under the terms of the GNU General Public License, v2 or later
4 # $Header$
5
6
7 depend() {
8 need checkfs
9 }
10
11 start() {
12 # LVM support for /usr, /home, /opt ....
13 if [ -x /sbin/vgchange -a -f /etc/lvmtab ]
14 then
15 ebegin "Setting up the Logical Volume Manager"
16 #still echo stderr for debugging
17 /sbin/vgscan && /sbin/vgchange -a y >/dev/null
18 eend $? "Failed to setup the LVM"
19 fi
20
21 # Mount local filesystems in /etc/fstab.
22 ebegin "Mounting local filesystems"
23 mount -at nocoda,nonfs,noproc,noncpfs,nosmbfs,noshm >/dev/null
24 eend $? "Some local filesystem failed to mount"
25
26 # Mount usbdevfs if kernel have support
27 if [ -z "$(grep usbdevfs /proc/filesystems)" ]
28 then
29 # >/dev/null to hide errors from non-USB users
30 modprobe usbcore &>/dev/null
31 fi
32 if [ -n "$(grep usbdevfs /proc/filesystems)" ] && [ -e /proc/bus/usb ] && \
33 [ ! -e /proc/bus/usb/devices ]
34 then
35 ebegin "Mounting USB device filesystem"
36 mount -t usbdevfs usbdevfs /proc/bus/usb &>/dev/null
37 eend $? "Failed to mount USB device filesystem"
38 fi
39
40 #swap on loopback devices, and other weirdnesses
41 ebegin "Activating (possibly) more swap"
42 /sbin/swapon -a &>/dev/null
43 eend 0
44 }
45
46
47 # vim:ts=4

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20