| … | |
… | |
| 5 | } |
5 | } |
| 6 | |
6 | |
| 7 | start() { |
7 | start() { |
| 8 | # Mount local filesystems in /etc/fstab. |
8 | # Mount local filesystems in /etc/fstab. |
| 9 | ebegin "Mounting local filesystems" |
9 | ebegin "Mounting local filesystems" |
| 10 | mount -at nonfs,noproc,noncpfs,nosmbfs,noshm |
10 | mount -at nonfs,noproc,noncpfs,nosmbfs,noshm |
| 11 | eend $? |
11 | eend $? |
| 12 | if [ -z "`grep usbdevfs /proc/filesystems`" ] |
12 | if [ -z "`grep usbdevfs /proc/filesystems`" ] |
| 13 | then |
13 | then |
| 14 | # >/dev/null to hide errors from non-USB users |
14 | # >/dev/null to hide errors from non-USB users |
| 15 | modprobe usbcore >/dev/null 2>/dev/null |
15 | modprobe usbcore >/dev/null 2>/dev/null |
| 16 | fi |
16 | fi |
| 17 | if [ -n "`grep usbdevfs /proc/filesystems`" ] && [ -e /proc/bus/usb ] && [ ! -e /proc/bus/usb/devices ] |
17 | if [ -n "`grep usbdevfs /proc/filesystems`" ] && [ -e /proc/bus/usb ] && [ ! -e /proc/bus/usb/devices ] |
| 18 | then |
18 | then |
| 19 | ebegin "Mounting USB device filesystem" |
19 | ebegin "Mounting USB device filesystem" |
| 20 | mount -t usbdevfs usbdevfs /proc/bus/usb |
20 | mount -t usbdevfs usbdevfs /proc/bus/usb |
| 21 | eend $? |
21 | eend $? |
| 22 | fi |
22 | fi |
| 23 | #swap on loopback devices, and other weirdnesses |
23 | #swap on loopback devices, and other weirdnesses |
| 24 | ebegin "Activating (possibly) more swap" |
24 | ebegin "Activating (possibly) more swap" |
| 25 | /sbin/swapon -a >/dev/null 2>&1 |
25 | /sbin/swapon -a >/dev/null 2>&1 |
| 26 | eend |
26 | eend |
| 27 | return |
27 | return |
| 28 | } |
28 | } |
| 29 | |
|
|