12345678910111213141516171819202122232425262728293031 |
- #!/bin/sh
- # A list of devices to mount. These must have a mount point specified in
- # /etc/fstab (and should be set "noauto" to prevent earlier mounting).
- LATE_FILESYSTEMS=""
- RESULT=0
- if [ "$1" = start ]; then
- PATH=/usr/bin:/usr/sbin:/bin:/sbin
-
- if [ ! -z "$LATE_FILESYSTEMS" ]; then
- for FS in $LATE_FILESYSTEMS; do
- fsck -a "$FS"
- fsckresult=$?
- if [ $(( $fsckresult & ~(1 + 32) )) -eq 0 ]; then
- mount "$FS"
- mntresult=$?
- if [ $mntresult -ne 0 ]; then
- RESULT=$mntresult
- fi
- else
- RESULT=$fsckresult
- fi
- done
- fi
- fi
- exit $RESULT
|