2 # Copyright 2010 Vertical Communications
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
10 local fsck_enabled
="$3"
15 grep -q "$device" /proc
/swaps ||
grep -q "$device" /proc
/mounts ||
{
16 [ -e "$device" ] && [ "$fsck_enabled" -eq 1 ] && {
17 for known_type
in $libmount_known_fsck; do
18 if [ "$known_type" = "$fsck_fstype" ]; then
19 fsck_
${known_type} "$device"
24 if [ "$found_fsck" -ne 1 ]; then
25 logger
-t 'fstab' "Unable to check/repair $device; no known fsck for filesystem type $fstype"
31 libmount_known_fsck
=""
33 include
/lib
/functions
/fsck
This page took 0.043371 seconds and 5 git commands to generate.