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 [ -n "$fsck_type" ] && [ "$fsck_type" != "swap" ] && {
16 grep -q "$device" /proc
/swaps ||
grep -q "$device" /proc
/mounts ||
{
17 [ -e "$device" ] && [ "$fsck_enabled" -eq 1 ] && {
18 for known_type
in $libmount_known_fsck; do
19 if [ "$known_type" = "$fsck_fstype" ]; then
20 fsck_
${known_type} "$device"
25 if [ "$found_fsck" -ne 1 ]; then
26 logger
-t 'fstab' "Unable to check/repair $device; no known fsck for filesystem type $fstype"
33 libmount_known_fsck
=""
35 include
/lib
/functions
/fsck
This page took 0.051341 seconds and 5 git commands to generate.