aboutsummaryrefslogtreecommitdiffstats
path: root/package/block-mount/files/20-fsck
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-06-21 16:53:00 +0000
committerJohn Crispin <blogic@openwrt.org>2013-06-21 16:53:00 +0000
commit7664baab52d985ba17446b6ff8d11f473e232d30 (patch)
treee7bd0f969d9e65e8197087b9e238588c46a92ecd /package/block-mount/files/20-fsck
parent11b33f6d64c3b6e63dd71a7b722999b1c346d410 (diff)
downloadupstream-7664baab52d985ba17446b6ff8d11f473e232d30.tar.gz
upstream-7664baab52d985ba17446b6ff8d11f473e232d30.tar.bz2
upstream-7664baab52d985ba17446b6ff8d11f473e232d30.zip
block-mount: drop package, ubox now does the job for us
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36988 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/block-mount/files/20-fsck')
-rw-r--r--package/block-mount/files/20-fsck83
1 files changed, 0 insertions, 83 deletions
diff --git a/package/block-mount/files/20-fsck b/package/block-mount/files/20-fsck
deleted file mode 100644
index c59e5abd72..0000000000
--- a/package/block-mount/files/20-fsck
+++ /dev/null
@@ -1,83 +0,0 @@
-#!/bin/sh
-# Copyright (C) 2009-2010 OpenWrt.org
-# Copyright (C) 2010 Vertical Communications
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-. /lib/functions/block.sh
-. /lib/functions/fsck.sh
-
-blkdev=`dirname $DEVPATH`
-
-if [ `basename $blkdev` != "block" ]; then
-
- device=`basename $DEVPATH`
-
- case "$ACTION" in
- add)
- local from_fstab
- local anon_mount
- local anon_swap
- local anon_fsck
- local mds_mount_target
- local mds_mount_device
- local mds_mount_fstype
- local mds_mount_enabled_fsck
- local sds_swap_device
- local use_device
- local do_fsck=0
- local fsck_type
-
- local autoswap_from_fstab
- local automount_from_fstab
- local hotplug_blkid_fstype_match
-
- mount_dev_section_cb() {
- mds_mount_device="$3"
- mds_mount_fstype="$4"
- mds_mount_enabled_fsck="$7"
- }
-
- swap_dev_section_cb() {
- sds_swap_device="$2"
- return 0
- }
-
- config_get_automount
- automount_from_fstab="$from_fstab"
-
- [ "$automount_from_fstab" -eq 1 ] && {
- config_get_mount_section_by_device "/dev/$device"
- use_device="$mds_mount_device"
- [ "$mds_mount_enabled_fsck" -eq 1 ] && {
- do_fsck=1
- fsck_type="$mds_mount_fstype"
- }
- }
-
- [ -z "$use_device" ] && {
- config_get_autoswap
- autoswap_from_fstab="$from_fstab"
-
- [ "$autoswap_from_fstab" -eq 1 ] && {
- config_get_swap_section_by_device "/dev/$device"
- use_device="$sds_swap_device" && do_fsck=0
- }
- }
-
- grep -q "/dev/$device" /proc/swaps || grep -q "/dev/$device" /proc/mounts || {
- [ "$anon_fsck" -eq 1 ] && [ -z "$use_device" ] && {
- use_device="/dev/$device" && do_fsck=1 && mds_mount_fstype="" && hotplug_blkid_fstype_match=0
- }
- }
-
- [ "$do_fsck" -eq 1 ] && {
- libmount_fsck "$use_device" "$fsck_type" "$do_fsck"
- }
-
- reset_dev_section_cb
- ;;
- esac
-fi
-