1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2008 OpenWrt.org
3 # Vasilis Tsiligiannis <acinonyxs@yahoo.gr>
11 config_get device
"$cfg" device
12 [ -b "$device" ] ||
return 0
14 config_get fstype
"$cfg" fstype
17 /usr
/sbin
/e2fsck
-p "$device"
22 4) echo "e2fsck ($device): Warning! Uncorrected errors.";;
23 *) echo "e2fsck ($device): Error $status. Check not complete.";;
33 config_foreach e2fsck mount