diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-29 10:48:46 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-29 10:48:46 +0000 |
commit | a0636310f8752b147ee0d1a769b6a8bcb603b2bc (patch) | |
tree | 0f48a0a61f7d54fb9e21ede8cb0d65c5c82149ea /package/e2fsprogs/files/e2fsck.sh | |
parent | eeb60d018ac3006b6e5b32e5ba29862743afe638 (diff) | |
download | master-187ad058-a0636310f8752b147ee0d1a769b6a8bcb603b2bc.tar.gz master-187ad058-a0636310f8752b147ee0d1a769b6a8bcb603b2bc.tar.bz2 master-187ad058-a0636310f8752b147ee0d1a769b6a8bcb603b2bc.zip |
move a few packages to system/utils
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35375 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/e2fsprogs/files/e2fsck.sh')
-rw-r--r-- | package/e2fsprogs/files/e2fsck.sh | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/package/e2fsprogs/files/e2fsck.sh b/package/e2fsprogs/files/e2fsck.sh deleted file mode 100644 index 22031edb67..0000000000 --- a/package/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" |