diff options
author | John Crispin <john@openwrt.org> | 2013-06-21 16:54:37 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-06-21 16:54:37 +0000 |
commit | 4ebf19b48fafc8d94e14e4ba779969613b241a6a (patch) | |
tree | 9918f890a8915023b49ea30948beb5d048c333fa /package/system/utils/e2fsprogs/files/e2fsck.sh | |
parent | 44b1688e6c7b4f16f7165fbd560e1183aef69090 (diff) | |
download | mtk-20170518-4ebf19b48fafc8d94e14e4ba779969613b241a6a.zip mtk-20170518-4ebf19b48fafc8d94e14e4ba779969613b241a6a.tar.gz mtk-20170518-4ebf19b48fafc8d94e14e4ba779969613b241a6a.tar.bz2 |
packages: clean up the package folder
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37007
Diffstat (limited to 'package/system/utils/e2fsprogs/files/e2fsck.sh')
-rw-r--r-- | package/system/utils/e2fsprogs/files/e2fsck.sh | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/package/system/utils/e2fsprogs/files/e2fsck.sh b/package/system/utils/e2fsprogs/files/e2fsck.sh deleted file mode 100644 index 22031ed..0000000 --- a/package/system/utils/e2fsprogs/files/e2fsck.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh -# Copyright 2010 Vertical Communications -# Copyright 2012 OpenWrt.org -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -fsck_e2fsck() { - set -o pipefail - e2fsck -p "$device" 2>&1 | logger -t "fstab: e2fsck ($device)" - local status="$?" - set +o pipefail - case "$status" in - 0|1) ;; #success - 2) reboot;; - 4) echo "e2fsck ($device): Warning! Uncorrected errors."| logger -t fstab - return 1 - ;; - *) echo "e2fsck ($device): Error $status. Check not complete."| logger -t fstab;; - esac - return 0 -} - -fsck_ext2() { - fsck_e2fsck "$@" -} - -fsck_ext3() { - fsck_e2fsck "$@" -} - -fsck_ext4() { - fsck_e2fsck "$@" -} - -append libmount_known_fsck "ext2" -append libmount_known_fsck "ext3" -append libmount_known_fsck "ext4" |